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
1e02c1c3
Commit
1e02c1c3
authored
Nov 17, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix the process tests on NT4.
parent
d68225eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
process.c
dlls/kernel32/tests/process.c
+7
-6
No files found.
dlls/kernel32/tests/process.c
View file @
1e02c1c3
...
...
@@ -501,7 +501,7 @@ static void test_Startup(void)
PROCESS_INFORMATION
info
;
STARTUPINFOA
startup
,
si
;
static
CHAR
title
[]
=
"I'm the title string"
,
desktop
[]
=
"
I'm the desktop string
"
,
desktop
[]
=
"
winsta0
\\
default
"
,
empty
[]
=
""
;
/* let's start simplistic */
...
...
@@ -854,9 +854,9 @@ static void test_CommandLine(void)
assert
(
lpFilePart
!=
0
);
*
(
lpFilePart
-
1
)
=
0
;
p
=
strrchr
(
fullpath
,
'\\'
);
assert
(
p
);
/* Use exename to avoid buffer containing things like 'C:' */
sprintf
(
buffer
,
"..%s/%s tests/process.c %s
\"
a
\\\"
b
\\\\\"
c
\\\"
d"
,
p
,
exename
,
resfile
);
if
(
p
)
sprintf
(
buffer
,
"..%s/%s tests/process.c %s
\"
a
\\\"
b
\\\\\"
c
\\\"
d"
,
p
,
exename
,
resfile
);
else
sprintf
(
buffer
,
"./%s tests/process.c %s
\"
a
\\\"
b
\\\\\"
c
\\\"
d"
,
exename
,
resfile
);
SetLastError
(
0xdeadbeef
);
ret
=
CreateProcessA
(
NULL
,
buffer
,
NULL
,
NULL
,
FALSE
,
0L
,
NULL
,
NULL
,
&
startup
,
&
info
);
ok
(
ret
,
"CreateProcess (%s) failed : %d
\n
"
,
buffer
,
GetLastError
());
...
...
@@ -864,7 +864,8 @@ static void test_CommandLine(void)
ok
(
WaitForSingleObject
(
info
.
hProcess
,
30000
)
==
WAIT_OBJECT_0
,
"Child process termination
\n
"
);
/* child process has changed result file, so let profile functions know about it */
WritePrivateProfileStringA
(
NULL
,
NULL
,
NULL
,
resfile
);
sprintf
(
buffer
,
"..%s/%s"
,
p
,
exename
);
if
(
p
)
sprintf
(
buffer
,
"..%s/%s"
,
p
,
exename
);
else
sprintf
(
buffer
,
"./%s"
,
exename
);
okChildString
(
"Arguments"
,
"argvA0"
,
buffer
);
release_memory
();
assert
(
DeleteFileA
(
resfile
)
!=
0
);
...
...
@@ -875,9 +876,9 @@ static void test_CommandLine(void)
assert
(
lpFilePart
!=
0
);
*
(
lpFilePart
-
1
)
=
0
;
p
=
strrchr
(
fullpath
,
'\\'
);
assert
(
p
);
/* Use exename to avoid buffer containing things like 'C:' */
sprintf
(
buffer
,
"..%s/%s"
,
p
,
exename
);
if
(
p
)
sprintf
(
buffer
,
"..%s/%s"
,
p
,
exename
);
else
sprintf
(
buffer
,
"./%s"
,
exename
);
sprintf
(
buffer2
,
"dummy tests/process.c %s
\"
a
\\\"
b
\\\\\"
c
\\\"
d"
,
resfile
);
SetLastError
(
0xdeadbeef
);
ret
=
CreateProcessA
(
buffer
,
buffer2
,
NULL
,
NULL
,
FALSE
,
0L
,
NULL
,
NULL
,
&
startup
,
&
info
);
...
...
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