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
a4a73c20
Commit
a4a73c20
authored
Dec 21, 2010
by
Greg Geldorp
Committed by
Alexandre Julliard
Dec 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Quote command line arguments that might contain spaces.
parent
59398d7c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
28 deletions
+28
-28
debugger.c
dlls/kernel32/tests/debugger.c
+6
-6
process.c
dlls/kernel32/tests/process.c
+22
-22
No files found.
dlls/kernel32/tests/debugger.c
View file @
a4a73c20
...
...
@@ -282,15 +282,15 @@ static void crash_and_debug(HKEY hkey, const char* argv0, const char* dbgtasks)
get_file_name
(
dbglog
);
get_events
(
dbglog
,
&
start_event
,
&
done_event
);
cmd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
argv0
)
+
10
+
strlen
(
dbgtasks
)
+
1
+
strlen
(
dbglog
)
+
34
+
1
);
sprintf
(
cmd
,
"%s debugger %s
%s
%%ld %%ld"
,
argv0
,
dbgtasks
,
dbglog
);
cmd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
argv0
)
+
10
+
strlen
(
dbgtasks
)
+
1
+
strlen
(
dbglog
)
+
2
+
34
+
1
);
sprintf
(
cmd
,
"%s debugger %s
\"
%s
\"
%%ld %%ld"
,
argv0
,
dbgtasks
,
dbglog
);
ret
=
RegSetValueExA
(
hkey
,
"debugger"
,
0
,
REG_SZ
,
(
BYTE
*
)
cmd
,
strlen
(
cmd
)
+
1
);
ok
(
ret
==
ERROR_SUCCESS
,
"unable to set AeDebug/debugger: ret=%d
\n
"
,
ret
);
HeapFree
(
GetProcessHeap
(),
0
,
cmd
);
get_file_name
(
childlog
);
cmd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
argv0
)
+
16
+
strlen
(
dbglog
)
+
1
);
sprintf
(
cmd
,
"%s debugger crash
%s
"
,
argv0
,
childlog
);
cmd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
argv0
)
+
16
+
strlen
(
dbglog
)
+
2
+
1
);
sprintf
(
cmd
,
"%s debugger crash
\"
%s
\"
"
,
argv0
,
childlog
);
memset
(
&
startup
,
0
,
sizeof
(
startup
));
startup
.
cb
=
sizeof
(
startup
);
...
...
@@ -582,8 +582,8 @@ static void test_debug_loop(int argc, char **argv)
ok
(
!
ret
,
"DebugActiveProcess() succeeded on own process.
\n
"
);
get_file_name
(
blackbox_file
);
cmd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
argv
[
0
])
+
strlen
(
arguments
)
+
strlen
(
blackbox_file
)
+
10
);
sprintf
(
cmd
,
"%s%s%08x
%s
"
,
argv
[
0
],
arguments
,
pid
,
blackbox_file
);
cmd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
argv
[
0
])
+
strlen
(
arguments
)
+
strlen
(
blackbox_file
)
+
2
+
10
);
sprintf
(
cmd
,
"%s%s%08x
\"
%s
\"
"
,
argv
[
0
],
arguments
,
pid
,
blackbox_file
);
memset
(
&
si
,
0
,
sizeof
(
si
));
si
.
cb
=
sizeof
(
si
);
...
...
dlls/kernel32/tests/process.c
View file @
a4a73c20
This diff is collapsed.
Click to expand it.
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