Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
21204f57
Commit
21204f57
authored
Jan 31, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: LOADPARAMS16->showCmd can be NULL, do not crash in that case.
parent
661b01f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ne_module.c
dlls/kernel32/ne_module.c
+3
-2
No files found.
dlls/kernel32/ne_module.c
View file @
21204f57
...
...
@@ -1193,7 +1193,7 @@ HINSTANCE16 WINAPI LoadModule16( LPCSTR name, LPVOID paramBlock )
HMODULE16
hModule
;
NE_MODULE
*
pModule
;
LPSTR
cmdline
;
WORD
cmdShow
;
WORD
cmdShow
=
1
;
/* SW_SHOWNORMAL but we don't want to include winuser.h here */
if
(
name
==
NULL
)
return
0
;
...
...
@@ -1235,7 +1235,8 @@ HINSTANCE16 WINAPI LoadModule16( LPCSTR name, LPVOID paramBlock )
* information.
*/
params
=
(
LOADPARAMS16
*
)
paramBlock
;
cmdShow
=
((
WORD
*
)
MapSL
(
params
->
showCmd
))[
1
];
if
(
params
->
showCmd
)
cmdShow
=
((
WORD
*
)
MapSL
(
params
->
showCmd
))[
1
];
cmdline
=
MapSL
(
params
->
cmdLine
);
return
NE_CreateThread
(
pModule
,
cmdShow
,
cmdline
);
}
...
...
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