Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5ce81a9d
Commit
5ce81a9d
authored
Dec 15, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
krnl386: Fetch version from the PEB to avoid potentially using GetVersionEx…
krnl386: Fetch version from the PEB to avoid potentially using GetVersionEx before it's initialized.
parent
e272b31b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ne_module.c
dlls/krnl386.exe16/ne_module.c
+2
-4
No files found.
dlls/krnl386.exe16/ne_module.c
View file @
5ce81a9d
...
...
@@ -917,7 +917,6 @@ static HMODULE16 NE_DoLoadBuiltinModule( const IMAGE_DOS_HEADER *mz_header, cons
NE_MODULE
*
pModule
;
HMODULE16
hModule
;
HINSTANCE16
hInstance
;
OSVERSIONINFOW
versionInfo
;
SIZE_T
mapping_size
=
~
0UL
;
/* assume builtins don't contain invalid offsets... */
hModule
=
build_module
(
mz_header
,
mapping_size
,
file_name
);
...
...
@@ -927,9 +926,8 @@ static HMODULE16 NE_DoLoadBuiltinModule( const IMAGE_DOS_HEADER *mz_header, cons
pModule
->
owner32
=
owner32
;
/* fake the expected version the module should have according to the current Windows version */
versionInfo
.
dwOSVersionInfoSize
=
sizeof
(
versionInfo
);
if
(
GetVersionExW
(
&
versionInfo
))
pModule
->
ne_expver
=
MAKEWORD
(
versionInfo
.
dwMinorVersion
,
versionInfo
.
dwMajorVersion
);
pModule
->
ne_expver
=
MAKEWORD
(
NtCurrentTeb
()
->
Peb
->
OSMajorVersion
,
NtCurrentTeb
()
->
Peb
->
OSMinorVersion
);
hInstance
=
NE_DoLoadModule
(
pModule
);
if
(
hInstance
<
32
)
NE_FreeModule
(
hModule
,
0
);
...
...
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