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
fb9df99d
Commit
fb9df99d
authored
Jan 20, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jan 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix a declaration and use skip for the message.
parent
105cf6b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
process.c
dlls/kernel32/tests/process.c
+8
-4
No files found.
dlls/kernel32/tests/process.c
View file @
fb9df99d
...
...
@@ -33,8 +33,9 @@
static
HINSTANCE
hkernel32
;
static
LPVOID
(
WINAPI
*
pVirtualAllocEx
)(
HANDLE
,
LPVOID
,
SIZE_T
,
DWORD
,
DWORD
);
static
LPVOID
(
WINAPI
*
pVirtualFreeEx
)(
HANDLE
,
LPVOID
,
SIZE_T
,
DWORD
);
static
BOOL
(
WINAPI
*
pVirtualFreeEx
)(
HANDLE
,
LPVOID
,
SIZE_T
,
DWORD
);
/* ############################### */
static
char
base
[
MAX_PATH
];
static
char
selfname
[
MAX_PATH
];
static
char
*
exename
;
...
...
@@ -1302,8 +1303,11 @@ static void test_OpenProcess(void)
MEMORY_BASIC_INFORMATION
info
;
SIZE_T
dummy
,
read_bytes
;
/* Not implemented in all windows versions */
if
((
!
pVirtualAllocEx
)
||
(
!
pVirtualFreeEx
))
return
;
/* not exported in all windows versions */
if
((
!
pVirtualAllocEx
)
||
(
!
pVirtualFreeEx
))
{
skip
(
"VirtualAllocEx not found
\n
"
);
return
;
}
/* without PROCESS_VM_OPERATION */
hproc
=
OpenProcess
(
PROCESS_ALL_ACCESS
&
~
PROCESS_VM_OPERATION
,
FALSE
,
GetCurrentProcessId
());
...
...
@@ -1315,7 +1319,7 @@ static void test_OpenProcess(void)
if
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
/* Win9x */
CloseHandle
(
hproc
);
trace
(
"VirtualAllocEx is not implemented, skipping the test
\n
"
);
skip
(
"VirtualAllocEx not implemented
\n
"
);
return
;
}
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"wrong error %d
\n
"
,
GetLastError
());
...
...
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