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
70d119b7
Commit
70d119b7
authored
Jun 04, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Fix NtQueryDirectoryObject wrapper.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
parent
ea4c506c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
sync.c
dlls/wow64/sync.c
+11
-5
No files found.
dlls/wow64/sync.c
View file @
70d119b7
...
...
@@ -769,26 +769,32 @@ NTSTATUS WINAPI wow64_NtQueryDirectoryObject( UINT *args )
BOOLEAN
restart
=
get_ulong
(
&
args
);
ULONG
*
context
=
get_ptr
(
&
args
);
ULONG
*
retlen
=
get_ptr
(
&
args
);
ULONG
retsize
;
NTSTATUS
status
;
DIRECTORY_BASIC_INFORMATION
*
info
;
ULONG
size
=
size32
+
sizeof
(
*
info
)
-
sizeof
(
*
info32
);
ULONG
size
=
size32
+
2
*
sizeof
(
*
info
)
-
2
*
sizeof
(
*
info32
);
if
(
!
single_entry
)
FIXME
(
"not implemented
\n
"
);
info
=
Wow64AllocateTemp
(
size
);
status
=
NtQueryDirectoryObject
(
handle
,
info
,
size
,
single_entry
,
restart
,
context
,
NULL
);
status
=
NtQueryDirectoryObject
(
handle
,
info
,
size
,
single_entry
,
restart
,
context
,
&
retsize
);
if
(
!
status
)
{
info32
->
ObjectName
.
Buffer
=
PtrToUlong
(
info32
+
1
);
info32
->
ObjectName
.
Buffer
=
PtrToUlong
(
info32
+
2
);
info32
->
ObjectName
.
Length
=
info
->
ObjectName
.
Length
;
info32
->
ObjectName
.
MaximumLength
=
info
->
ObjectName
.
MaximumLength
;
info32
->
ObjectTypeName
.
Buffer
=
info32
->
ObjectName
.
Buffer
+
info
->
ObjectName
.
MaximumLength
;
info32
->
ObjectTypeName
.
Length
=
info
->
ObjectTypeName
.
Length
;
info32
->
ObjectTypeName
.
MaximumLength
=
info
->
ObjectTypeName
.
MaximumLength
;
memset
(
info32
+
1
,
0
,
sizeof
(
*
info32
)
);
size
=
info
->
ObjectName
.
MaximumLength
+
info
->
ObjectTypeName
.
MaximumLength
;
memcpy
(
info32
+
1
,
info
+
1
,
size
);
if
(
retlen
)
*
retlen
=
sizeof
(
*
info32
)
+
size
;
memcpy
(
info32
+
2
,
info
+
2
,
size
);
if
(
retlen
)
*
retlen
=
2
*
sizeof
(
*
info32
)
+
size
;
}
else
if
(
retlen
&&
status
==
STATUS_BUFFER_TOO_SMALL
)
*
retlen
=
retsize
-
2
*
sizeof
(
*
info
)
+
2
*
sizeof
(
*
info32
);
else
if
(
retlen
&&
status
==
STATUS_NO_MORE_ENTRIES
)
*
retlen
=
0
;
return
status
;
}
...
...
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