Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ca1ee38b
Commit
ca1ee38b
authored
Apr 04, 2000
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of Win32s check.
parent
503e1185
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
PC/import_nt.c
PC/import_nt.c
+1
-17
No files found.
PC/import_nt.c
View file @
ca1ee38b
...
@@ -14,22 +14,6 @@
...
@@ -14,22 +14,6 @@
extern
const
char
*
PyWin_DLLVersionString
;
// a string loaded from the DLL at startup.
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
)
FILE
*
PyWin_FindRegisteredModule
(
const
char
*
moduleName
,
struct
filedescr
**
ppFileDesc
,
char
*
pathBuf
,
int
pathLen
)
{
{
char
*
moduleKey
;
char
*
moduleKey
;
...
@@ -43,7 +27,7 @@ FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppF
...
@@ -43,7 +27,7 @@ FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppF
#endif
#endif
struct
filedescr
*
fdp
=
NULL
;
struct
filedescr
*
fdp
=
NULL
;
FILE
*
fp
;
FILE
*
fp
;
HKEY
keyBase
=
PyWin_IsWin32s
()
?
HKEY_CLASSES_ROOT
:
HKEY_LOCAL_MACHINE
;
HKEY
keyBase
=
HKEY_LOCAL_MACHINE
;
int
modNameSize
;
int
modNameSize
;
long
regStat
;
long
regStat
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment