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
ad8ef99f
Commit
ad8ef99f
authored
Jan 21, 2001
by
Gerard Patel
Committed by
Alexandre Julliard
Jan 21, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the cmdline argument passed to NE_CreateThread to include string
length.
parent
ff1d7282
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
module.c
loader/ne/module.c
+10
-2
No files found.
loader/ne/module.c
View file @
ad8ef99f
...
...
@@ -1110,7 +1110,8 @@ HINSTANCE16 NE_StartMain( LPCSTR name, HANDLE file )
STARTUPINFOA
info
;
HMODULE16
hModule
;
NE_MODULE
*
pModule
;
LPSTR
cmdline
=
GetCommandLineA
();
INT
len
;
LPSTR
pCmdLine
,
cmdline
=
GetCommandLineA
();
if
((
hModule
=
NE_LoadExeHeader
(
file
,
name
))
<
32
)
return
hModule
;
...
...
@@ -1123,10 +1124,17 @@ HINSTANCE16 NE_StartMain( LPCSTR name, HANDLE file )
while
(
*
cmdline
&&
*
cmdline
!=
' '
)
cmdline
++
;
if
(
*
cmdline
)
cmdline
++
;
len
=
strlen
(
cmdline
);
pCmdLine
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
+
2
);
if
(
pCmdLine
)
{
strcpy
(
pCmdLine
+
1
,
cmdline
);
*
pCmdLine
=
len
;
}
GetStartupInfoA
(
&
info
);
if
(
!
(
info
.
dwFlags
&
STARTF_USESHOWWINDOW
))
info
.
wShowWindow
=
1
;
return
NE_CreateThread
(
pModule
,
info
.
wShowWindow
,
cmdl
ine
);
return
NE_CreateThread
(
pModule
,
info
.
wShowWindow
,
pCmdL
ine
);
}
...
...
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