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
44d0d190
Commit
44d0d190
authored
Aug 01, 2000
by
Peter Ganten
Committed by
Alexandre Julliard
Aug 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WinExec16 should not split quoted filenames with spaces.
parent
9e38c649
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
module.c
loader/module.c
+6
-2
No files found.
loader/module.c
View file @
44d0d190
...
@@ -712,13 +712,17 @@ BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType )
...
@@ -712,13 +712,17 @@ BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType )
*/
*/
HINSTANCE16
WINAPI
WinExec16
(
LPCSTR
lpCmdLine
,
UINT16
nCmdShow
)
HINSTANCE16
WINAPI
WinExec16
(
LPCSTR
lpCmdLine
,
UINT16
nCmdShow
)
{
{
LPCSTR
p
;
LPCSTR
p
=
NULL
;
LPSTR
name
,
cmdline
;
LPSTR
name
,
cmdline
;
int
len
;
int
len
;
HINSTANCE16
ret
;
HINSTANCE16
ret
;
char
buffer
[
MAX_PATH
];
char
buffer
[
MAX_PATH
];
if
((
p
=
strchr
(
lpCmdLine
,
' '
)))
if
(
(
*
lpCmdLine
==
'"'
)
&&
(
p
=
strchr
(
lpCmdLine
+
1
,
'"'
)
)
)
p
=
strchr
(
p
,
' '
);
else
p
=
strchr
(
lpCmdLine
,
' '
);
if
(
p
)
{
{
if
(
!
(
name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
p
-
lpCmdLine
+
1
)))
if
(
!
(
name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
p
-
lpCmdLine
+
1
)))
return
ERROR_NOT_ENOUGH_MEMORY
;
return
ERROR_NOT_ENOUGH_MEMORY
;
...
...
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