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
a155cf5f
Commit
a155cf5f
authored
Apr 12, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: We need a bigger buffer for NtQueryInformationFile.
parent
35367700
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
file.c
dlls/ntdll/tests/file.c
+6
-4
No files found.
dlls/ntdll/tests/file.c
View file @
a155cf5f
...
...
@@ -345,14 +345,16 @@ static void open_file_test(void)
}
if
(
!
status
)
{
FILE_ALL_INFORMATION
all_info
;
BYTE
buf
[
sizeof
(
FILE_ALL_INFORMATION
)
+
MAX_PATH
*
sizeof
(
WCHAR
)]
;
if
(
!
pNtQueryInformationFile
(
handle
,
&
io
,
&
all_info
,
sizeof
(
all_info
),
FileAllInformation
))
if
(
!
pNtQueryInformationFile
(
handle
,
&
io
,
buf
,
sizeof
(
buf
),
FileAllInformation
))
{
FILE_ALL_INFORMATION
*
fai
=
(
FILE_ALL_INFORMATION
*
)
buf
;
/* check that it's the same file */
ok
(
info
->
EndOfFile
.
QuadPart
==
all_info
.
StandardInformation
.
EndOfFile
.
QuadPart
,
ok
(
info
->
EndOfFile
.
QuadPart
==
fai
->
StandardInformation
.
EndOfFile
.
QuadPart
,
"mismatched file size for %s
\n
"
,
wine_dbgstr_w
(
info
->
FileName
));
ok
(
info
->
LastWriteTime
.
QuadPart
==
all_info
.
BasicInformation
.
LastWriteTime
.
QuadPart
,
ok
(
info
->
LastWriteTime
.
QuadPart
==
fai
->
BasicInformation
.
LastWriteTime
.
QuadPart
,
"mismatched write time for %s
\n
"
,
wine_dbgstr_w
(
info
->
FileName
));
}
CloseHandle
(
handle
);
...
...
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