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
52bc06af
Commit
52bc06af
authored
Feb 07, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Use PROCESS_ALL_ACCESS definition compatible with versions of Windows before Vista.
parent
cdc30665
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
loader.c
dlls/kernel32/tests/loader.c
+6
-3
No files found.
dlls/kernel32/tests/loader.c
View file @
52bc06af
...
...
@@ -30,6 +30,9 @@
#include "wine/test.h"
#include "delayloadhandler.h"
/* PROCESS_ALL_ACCESS in Vista+ PSDKs is incompatible with older Windows versions */
#define PROCESS_ALL_ACCESS_NT4 (PROCESS_ALL_ACCESS & ~0xf000)
#define ALIGN_SIZE(size, alignment) (((size) + (alignment - 1)) & ~((alignment - 1)))
struct
PROCESS_BASIC_INFORMATION_PRIVATE
...
...
@@ -1436,7 +1439,7 @@ static BOOL WINAPI dll_entry_point(HINSTANCE hinst, DWORD reason, LPVOID param)
}
SetLastError
(
0xdeadbeef
);
process
=
OpenProcess
(
PROCESS_ALL_ACCESS
,
FALSE
,
GetCurrentProcessId
());
process
=
OpenProcess
(
PROCESS_ALL_ACCESS
_NT4
,
FALSE
,
GetCurrentProcessId
());
ok
(
process
!=
NULL
,
"OpenProcess error %d
\n
"
,
GetLastError
());
noop_thread_started
=
0
;
...
...
@@ -1659,7 +1662,7 @@ static void child_process(const char *dll_name, DWORD target_offset)
ok
(
!
ret
,
"RtlDllShutdownInProgress returned %d
\n
"
,
ret
);
SetLastError
(
0xdeadbeef
);
process
=
OpenProcess
(
PROCESS_ALL_ACCESS
,
FALSE
,
GetCurrentProcessId
());
process
=
OpenProcess
(
PROCESS_ALL_ACCESS
_NT4
,
FALSE
,
GetCurrentProcessId
());
ok
(
process
!=
NULL
,
"OpenProcess error %d
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
...
...
@@ -2186,7 +2189,7 @@ static void test_ExitProcess(void)
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject failed: %x
\n
"
,
ret
);
SetLastError
(
0xdeadbeef
);
process
=
OpenProcess
(
PROCESS_ALL_ACCESS
,
FALSE
,
pi
.
dwProcessId
);
process
=
OpenProcess
(
PROCESS_ALL_ACCESS
_NT4
,
FALSE
,
pi
.
dwProcessId
);
ok
(
process
!=
NULL
,
"OpenProcess error %d
\n
"
,
GetLastError
());
CloseHandle
(
process
);
...
...
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