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
a055f412
Commit
a055f412
authored
Nov 20, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Use NtQueryInformationFile for consoles handles in GetFileSizeEx.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
382b2072
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
console.c
dlls/kernel32/tests/console.c
+0
-2
file.c
dlls/kernelbase/file.c
+0
-6
No files found.
dlls/kernel32/tests/console.c
View file @
a055f412
...
...
@@ -3959,12 +3959,10 @@ static void test_file_info(HANDLE input, HANDLE output)
ok
(
status
==
STATUS_INVALID_DEVICE_REQUEST
,
"NtQueryInformationFile returned: %#x
\n
"
,
status
);
ret
=
GetFileSizeEx
(
input
,
&
size
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_FUNCTION
,
"GetFileSizeEx returned %x(%u)
\n
"
,
ret
,
GetLastError
());
ret
=
GetFileSizeEx
(
output
,
&
size
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_FUNCTION
,
"GetFileSizeEx returned %x(%u)
\n
"
,
ret
,
GetLastError
());
}
...
...
dlls/kernelbase/file.c
View file @
a055f412
...
...
@@ -3047,12 +3047,6 @@ BOOL WINAPI DECLSPEC_HOTPATCH GetFileSizeEx( HANDLE file, PLARGE_INTEGER size )
FILE_STANDARD_INFORMATION
info
;
IO_STATUS_BLOCK
io
;
if
(
is_console_handle
(
file
))
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
if
(
!
set_ntstatus
(
NtQueryInformationFile
(
file
,
&
io
,
&
info
,
sizeof
(
info
),
FileStandardInformation
)))
return
FALSE
;
...
...
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