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
6cf16d72
Commit
6cf16d72
authored
Jun 22, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
psapi/tests: Fix the working set tests for Wow64.
parent
b4d21efd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
psapi_main.c
dlls/psapi/tests/psapi_main.c
+17
-4
No files found.
dlls/psapi/tests/psapi_main.c
View file @
6cf16d72
...
@@ -275,23 +275,36 @@ static void test_ws_functions(void)
...
@@ -275,23 +275,36 @@ static void test_ws_functions(void)
ULONG_PTR
pages
[
4096
];
ULONG_PTR
pages
[
4096
];
char
*
addr
;
char
*
addr
;
unsigned
int
i
;
unsigned
int
i
;
BOOL
ret
;
todo_wine
w32_err
(
pEmptyWorkingSet
(
NULL
),
ERROR_INVALID_HANDLE
);
todo_wine
w32_err
(
pEmptyWorkingSet
(
NULL
),
ERROR_INVALID_HANDLE
);
todo_wine
w32_err
(
pEmptyWorkingSet
(
hpSR
),
ERROR_ACCESS_DENIED
);
todo_wine
w32_err
(
pEmptyWorkingSet
(
hpSR
),
ERROR_ACCESS_DENIED
);
w32_suc
(
pEmptyWorkingSet
(
hpAA
));
w32_suc
(
pEmptyWorkingSet
(
hpAA
));
todo_wine
w32_err
(
pInitializeProcessForWsWatch
(
NULL
),
ERROR_INVALID_HANDLE
);
SetLastError
(
0xdeadbeef
);
ret
=
pInitializeProcessForWsWatch
(
NULL
);
todo_wine
ok
(
!
ret
,
"InitializeProcessForWsWatch succeeded
\n
"
);
if
(
!
ret
)
{
if
(
GetLastError
()
==
ERROR_INVALID_FUNCTION
)
/* not supported on xp in wow64 mode */
{
trace
(
"InitializeProcessForWsWatch not supported
\n
"
);
return
;
}
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"wrong error %u
\n
"
,
GetLastError
()
);
}
w32_suc
(
pInitializeProcessForWsWatch
(
hpAA
));
w32_suc
(
pInitializeProcessForWsWatch
(
hpAA
));
if
(
!
w32_suc
(
addr
=
VirtualAlloc
(
NULL
,
1
,
MEM_COMMIT
,
PAGE_READWRITE
)))
if
(
!
w32_suc
(
addr
=
VirtualAlloc
(
NULL
,
1
,
MEM_COMMIT
,
PAGE_READWRITE
)))
return
;
return
;
*
addr
=
0
;
/* make sure it's paged in (needed on wow64) */
if
(
!
VirtualLock
(
addr
,
1
))
if
(
!
VirtualLock
(
addr
,
1
))
{
{
trace
(
"locking failed (error=%d) - skipping test
\n
"
,
GetLastError
());
trace
(
"locking failed (error=%d) - skipping test
\n
"
,
GetLastError
());
goto
free_page
;
goto
free_page
;
}
}
todo_wine
if
(
w32_suc
(
pQueryWorkingSet
(
hpQI
,
pages
,
4096
*
sizeof
(
ULONG_PTR
))))
todo_wine
if
(
w32_suc
(
pQueryWorkingSet
(
hpQI
,
pages
,
4096
*
sizeof
(
ULONG_PTR
))))
{
{
for
(
i
=
0
;
i
<
pages
[
0
];
i
++
)
for
(
i
=
0
;
i
<
pages
[
0
];
i
++
)
...
...
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