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
9fef5dc8
Commit
9fef5dc8
authored
Apr 29, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Properly check the NtQueryDirectoryFile return status.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c90845cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
actctx.c
dlls/ntdll/actctx.c
+5
-6
No files found.
dlls/ntdll/actctx.c
View file @
9fef5dc8
...
@@ -2694,9 +2694,8 @@ static WCHAR *lookup_manifest_file( HANDLE dir, struct assembly_identity *ai )
...
@@ -2694,9 +2694,8 @@ static WCHAR *lookup_manifest_file( HANDLE dir, struct assembly_identity *ai )
ai
->
version
.
major
,
ai
->
version
.
minor
,
lang
);
ai
->
version
.
major
,
ai
->
version
.
minor
,
lang
);
RtlInitUnicodeString
(
&
lookup_us
,
lookup
);
RtlInitUnicodeString
(
&
lookup_us
,
lookup
);
NtQueryDirectoryFile
(
dir
,
0
,
NULL
,
NULL
,
&
io
,
buffer
,
sizeof
(
buffer
),
if
(
!
NtQueryDirectoryFile
(
dir
,
0
,
NULL
,
NULL
,
&
io
,
buffer
,
sizeof
(
buffer
),
FileBothDirectoryInformation
,
FALSE
,
&
lookup_us
,
TRUE
);
FileBothDirectoryInformation
,
FALSE
,
&
lookup_us
,
TRUE
))
if
(
io
.
u
.
Status
==
STATUS_SUCCESS
)
{
{
ULONG
min_build
=
ai
->
version
.
build
,
min_revision
=
ai
->
version
.
revision
;
ULONG
min_build
=
ai
->
version
.
build
,
min_revision
=
ai
->
version
.
revision
;
FILE_BOTH_DIR_INFORMATION
*
dir_info
;
FILE_BOTH_DIR_INFORMATION
*
dir_info
;
...
@@ -2709,9 +2708,9 @@ static WCHAR *lookup_manifest_file( HANDLE dir, struct assembly_identity *ai )
...
@@ -2709,9 +2708,9 @@ static WCHAR *lookup_manifest_file( HANDLE dir, struct assembly_identity *ai )
{
{
if
(
data_pos
>=
data_len
)
if
(
data_pos
>=
data_len
)
{
{
NtQueryDirectoryFile
(
dir
,
0
,
NULL
,
NULL
,
&
io
,
buffer
,
sizeof
(
buffer
),
if
(
NtQueryDirectoryFile
(
dir
,
0
,
NULL
,
NULL
,
&
io
,
buffer
,
sizeof
(
buffer
),
FileBothDirectoryInformation
,
FALSE
,
&
lookup_us
,
FALSE
);
FileBothDirectoryInformation
,
FALSE
,
&
lookup_us
,
FALSE
))
if
(
io
.
u
.
Status
!=
STATUS_SUCCESS
)
break
;
break
;
data_len
=
io
.
Information
;
data_len
=
io
.
Information
;
data_pos
=
0
;
data_pos
=
0
;
}
}
...
...
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