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
85d93d68
Commit
85d93d68
authored
Nov 12, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix the FileNameInformation info size.
parent
4422e671
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
file.c
dlls/ntdll/file.c
+1
-1
file.c
dlls/ntdll/tests/file.c
+3
-0
No files found.
dlls/ntdll/file.c
View file @
85d93d68
...
...
@@ -1551,7 +1551,7 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE hFile, PIO_STATUS_BLOCK io,
sizeof
(
FILE_INTERNAL_INFORMATION
),
/* FileInternalInformation */
sizeof
(
FILE_EA_INFORMATION
),
/* FileEaInformation */
sizeof
(
FILE_ACCESS_INFORMATION
),
/* FileAccessInformation */
sizeof
(
FILE_NAME_INFORMATION
)
-
sizeof
(
WCHAR
),
/* FileNameInformation */
sizeof
(
FILE_NAME_INFORMATION
)
,
/* FileNameInformation */
sizeof
(
FILE_RENAME_INFORMATION
)
-
sizeof
(
WCHAR
),
/* FileRenameInformation */
0
,
/* FileLinkInformation */
sizeof
(
FILE_NAMES_INFORMATION
)
-
sizeof
(
WCHAR
),
/* FileNamesInformation */
...
...
dlls/ntdll/tests/file.c
View file @
85d93d68
...
...
@@ -977,6 +977,9 @@ static void test_file_name_information(void)
NULL
,
OPEN_EXISTING
,
FILE_FLAG_BACKUP_SEMANTICS
,
0
);
ok
(
h
!=
INVALID_HANDLE_VALUE
,
"Failed to open file.
\n
"
);
hr
=
pNtQueryInformationFile
(
h
,
&
io
,
info
,
sizeof
(
*
info
)
-
1
,
FileNameInformation
);
ok
(
hr
==
STATUS_INFO_LENGTH_MISMATCH
,
"NtQueryInformationFile returned %#x.
\n
"
,
hr
);
memset
(
info
,
0xcc
,
info_size
);
hr
=
pNtQueryInformationFile
(
h
,
&
io
,
info
,
sizeof
(
*
info
),
FileNameInformation
);
ok
(
hr
==
STATUS_BUFFER_OVERFLOW
,
"NtQueryInformationFile returned %#x, expected %#x.
\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