Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f3cc35

Browse files
committed
Get rid of Win32s check.
1 parent bf4041a commit 4f3cc35

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

PC/import_nt.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,6 @@
1414

1515
extern const char *PyWin_DLLVersionString; // a string loaded from the DLL at startup.
1616

17-
/* Return whether this is Win32s, i.e., Win32 API on Win 3.1(1).
18-
This function is exported! */
19-
20-
BOOL PyWin_IsWin32s()
21-
{
22-
static BOOL bIsWin32s = -1; /* flag as "not yet looked" */
23-
24-
if (bIsWin32s == -1) {
25-
OSVERSIONINFO ver;
26-
ver.dwOSVersionInfoSize = sizeof(ver);
27-
GetVersionEx(&ver);
28-
bIsWin32s = ver.dwPlatformId == VER_PLATFORM_WIN32s;
29-
}
30-
return bIsWin32s;
31-
}
32-
3317
FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppFileDesc, char *pathBuf, int pathLen)
3418
{
3519
char *moduleKey;
@@ -43,7 +27,7 @@ FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppF
4327
#endif
4428
struct filedescr *fdp = NULL;
4529
FILE *fp;
46-
HKEY keyBase = PyWin_IsWin32s() ? HKEY_CLASSES_ROOT : HKEY_LOCAL_MACHINE;
30+
HKEY keyBase = HKEY_LOCAL_MACHINE;
4731
int modNameSize;
4832
long regStat;
4933

0 commit comments

Comments
 (0)