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
48a2a467
Commit
48a2a467
authored
Feb 07, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
psapi: Make sure that NtQueryVirtualMemory(MemorySectionName) succeeds under Windows 2000 too.
parent
c3e24076
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
psapi_main.c
dlls/psapi/tests/psapi_main.c
+7
-3
No files found.
dlls/psapi/tests/psapi_main.c
View file @
48a2a467
...
...
@@ -198,7 +198,7 @@ static BOOL nt_get_mapped_file_name(HANDLE process, LPVOID addr, LPWSTR name, DW
{
MEMORY_SECTION_NAME
*
section_name
;
WCHAR
*
buf
;
SIZE_T
buf_len
;
SIZE_T
buf_len
,
ret_len
;
NTSTATUS
status
;
if
(
!
pNtQueryVirtualMemory
)
return
FALSE
;
...
...
@@ -206,12 +206,16 @@ static BOOL nt_get_mapped_file_name(HANDLE process, LPVOID addr, LPWSTR name, DW
buf_len
=
len
*
sizeof
(
WCHAR
)
+
sizeof
(
MEMORY_SECTION_NAME
);
buf
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
buf_len
);
status
=
pNtQueryVirtualMemory
(
process
,
addr
,
MemorySectionName
,
buf
,
buf_len
,
NULL
);
ret_len
=
0xdeadbeef
;
status
=
pNtQueryVirtualMemory
(
process
,
addr
,
MemorySectionName
,
buf
,
buf_len
,
&
ret_len
);
todo_wine
ok
(
!
status
||
broken
(
status
==
STATUS_ACCESS_VIOLATION
)
/* win2k */
,
"NtQueryVirtualMemory error %x
\n
"
,
status
);
ok
(
!
status
,
"NtQueryVirtualMemory error %x
\n
"
,
status
);
/* FIXME: remove once Wine is fixed */
if
(
status
)
return
FALSE
;
section_name
=
(
MEMORY_SECTION_NAME
*
)
buf
;
ok
(
ret_len
==
section_name
->
SectionFileName
.
MaximumLength
+
sizeof
(
*
section_name
),
"got %lu, %u
\n
"
,
ret_len
,
section_name
->
SectionFileName
.
MaximumLength
);
ok
((
char
*
)
section_name
->
SectionFileName
.
Buffer
==
(
char
*
)
section_name
+
sizeof
(
*
section_name
),
"got %p, %p
\n
"
,
section_name
,
section_name
->
SectionFileName
.
Buffer
);
ok
(
section_name
->
SectionFileName
.
MaximumLength
==
section_name
->
SectionFileName
.
Length
+
sizeof
(
WCHAR
),
"got %u, %u
\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