summaryrefslogtreecommitdiffstats
path: root/PC/import_nt.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-04-04 22:48:55 (GMT)
committerGuido van Rossum <guido@python.org>2000-04-04 22:48:55 (GMT)
commit4f3cc35cc1716a4982161aa0f23ad193e372cb34 (patch)
tree37c807b827c8da9bc94eba0cbb8ea5abe22c31d8 /PC/import_nt.c
parentbf4041a0a65e948d169d1123f28c146e625c191c (diff)
downloadcpython-4f3cc35cc1716a4982161aa0f23ad193e372cb34.zip
cpython-4f3cc35cc1716a4982161aa0f23ad193e372cb34.tar.gz
cpython-4f3cc35cc1716a4982161aa0f23ad193e372cb34.tar.bz2
Get rid of Win32s check.
Diffstat (limited to 'PC/import_nt.c')
-rw-r--r--PC/import_nt.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/PC/import_nt.c b/PC/import_nt.c
index bed057f..2fe44b6 100644
--- a/PC/import_nt.c
+++ b/PC/import_nt.c
@@ -14,22 +14,6 @@
extern const char *PyWin_DLLVersionString; // a string loaded from the DLL at startup.
-/* Return whether this is Win32s, i.e., Win32 API on Win 3.1(1).
- This function is exported! */
-
-BOOL PyWin_IsWin32s()
-{
- static BOOL bIsWin32s = -1; /* flag as "not yet looked" */
-
- if (bIsWin32s == -1) {
- OSVERSIONINFO ver;
- ver.dwOSVersionInfoSize = sizeof(ver);
- GetVersionEx(&ver);
- bIsWin32s = ver.dwPlatformId == VER_PLATFORM_WIN32s;
- }
- return bIsWin32s;
-}
-
FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppFileDesc, char *pathBuf, int pathLen)
{
char *moduleKey;
@@ -43,7 +27,7 @@ FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppF
#endif
struct filedescr *fdp = NULL;
FILE *fp;
- HKEY keyBase = PyWin_IsWin32s() ? HKEY_CLASSES_ROOT : HKEY_LOCAL_MACHINE;
+ HKEY keyBase = HKEY_LOCAL_MACHINE;
int modNameSize;
long regStat;