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
6774accd
Commit
6774accd
authored
Oct 17, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix process tests compilation with __WINESRC__ defined.
parent
ddb66321
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
process.c
dlls/kernel32/tests/process.c
+9
-9
No files found.
dlls/kernel32/tests/process.c
View file @
6774accd
...
...
@@ -1665,7 +1665,7 @@ static void test_GetProcessImageFileNameA(void)
length
=
sizeof
(
image
);
expect_eq_d
(
TRUE
,
pQueryFullProcessImageNameA
(
GetCurrentProcess
(),
PROCESS_NAME_NATIVE
,
image
,
&
length
));
expect_eq_d
(
length
,
lstrlenA
(
image
));
ok
(
lstrcmpi
(
process
,
image
)
==
0
,
"expected '%s' to be equal to '%s'
\n
"
,
process
,
image
);
ok
(
lstrcmpi
A
(
process
,
image
)
==
0
,
"expected '%s' to be equal to '%s'
\n
"
,
process
,
image
);
}
}
...
...
@@ -1691,7 +1691,7 @@ static void test_QueryFullProcessImageNameA(void)
expect_eq_d
(
TRUE
,
pQueryFullProcessImageNameA
(
GetCurrentProcess
(),
0
,
buf
,
&
length
));
expect_eq_d
(
length
,
lstrlenA
(
buf
));
ok
((
buf
[
0
]
==
'\\'
&&
buf
[
1
]
==
'\\'
)
||
lstrcmpi
(
buf
,
module
)
==
0
,
"expected %s to match %s
\n
"
,
buf
,
module
);
lstrcmpi
A
(
buf
,
module
)
==
0
,
"expected %s to match %s
\n
"
,
buf
,
module
);
/* when the buffer is too small
* - function fail with error ERROR_INSUFFICIENT_BUFFER
...
...
@@ -1930,14 +1930,14 @@ static void test_TerminateProcess(void)
{
static
char
cmdline
[]
=
"winver.exe"
;
PROCESS_INFORMATION
pi
;
STARTUPINFO
si
;
STARTUPINFO
A
si
;
DWORD
ret
;
HANDLE
dummy
,
thread
;
memset
(
&
si
,
0
,
sizeof
(
si
));
si
.
cb
=
sizeof
(
si
);
SetLastError
(
0xdeadbeef
);
ret
=
CreateProcess
(
NULL
,
cmdline
,
NULL
,
NULL
,
FALSE
,
CREATE_SUSPENDED
,
NULL
,
NULL
,
&
si
,
&
pi
);
ret
=
CreateProcess
A
(
NULL
,
cmdline
,
NULL
,
NULL
,
FALSE
,
CREATE_SUSPENDED
,
NULL
,
NULL
,
&
si
,
&
pi
);
ok
(
ret
,
"CreateProcess error %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
...
...
@@ -1990,9 +1990,9 @@ static void test_DuplicateHandle(void)
ok
(
out
!=
GetCurrentProcess
(),
"out = GetCurrentProcess()
\n
"
);
CloseHandle
(
out
);
GetTempPath
(
MAX_PATH
,
path
);
GetTempFileName
(
path
,
"wt"
,
0
,
file_name
);
f
=
CreateFile
(
file_name
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
0
);
GetTempPath
A
(
MAX_PATH
,
path
);
GetTempFileName
A
(
path
,
"wt"
,
0
,
file_name
);
f
=
CreateFile
A
(
file_name
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
0
);
if
(
f
==
INVALID_HANDLE_VALUE
)
{
ok
(
0
,
"could not create %s
\n
"
,
file_name
);
...
...
@@ -2043,9 +2043,9 @@ static void test_DuplicateHandle(void)
ok
(
r
,
"DuplicateHandle error %u
\n
"
,
GetLastError
());
ok
(
f
==
out
,
"f != out
\n
"
);
CloseHandle
(
out
);
DeleteFile
(
file_name
);
DeleteFile
A
(
file_name
);
f
=
CreateFile
(
"CONIN$"
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
f
=
CreateFile
A
(
"CONIN$"
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
if
(
!
is_console
(
f
))
{
skip
(
"DuplicateHandle on console handle
\n
"
);
...
...
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