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
dc72519c
Commit
dc72519c
authored
Nov 19, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Import ReadFile from kernelbase.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c248999a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
31 deletions
+1
-31
file.c
dlls/kernel32/file.c
+0
-30
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
No files found.
dlls/kernel32/file.c
View file @
dc72519c
...
@@ -276,36 +276,6 @@ UINT WINAPI SetHandleCount( UINT count )
...
@@ -276,36 +276,6 @@ UINT WINAPI SetHandleCount( UINT count )
}
}
/*************************************************************************
* ReadFile (KERNEL32.@)
*/
BOOL
WINAPI
KERNEL32_ReadFile
(
HANDLE
file
,
LPVOID
buffer
,
DWORD
count
,
LPDWORD
result
,
LPOVERLAPPED
overlapped
)
{
if
(
result
)
*
result
=
0
;
if
(
is_console_handle
(
file
))
{
DWORD
conread
,
mode
;
if
(
!
ReadConsoleA
(
file
,
buffer
,
count
,
&
conread
,
NULL
)
||
!
GetConsoleMode
(
file
,
&
mode
))
return
FALSE
;
/* ctrl-Z (26) means end of file on window (if at beginning of buffer)
* but Unix uses ctrl-D (4), and ctrl-Z is a bad idea on Unix :-/
* So map both ctrl-D ctrl-Z to EOF.
*/
if
((
mode
&
ENABLE_PROCESSED_INPUT
)
&&
conread
>
0
&&
(((
char
*
)
buffer
)[
0
]
==
26
||
((
char
*
)
buffer
)[
0
]
==
4
))
{
conread
=
0
;
}
if
(
result
)
*
result
=
conread
;
return
TRUE
;
}
return
ReadFile
(
file
,
buffer
,
count
,
result
,
overlapped
);
}
/***********************************************************************
/***********************************************************************
* DosDateTimeToFileTime (KERNEL32.@)
* DosDateTimeToFileTime (KERNEL32.@)
*/
*/
...
...
dlls/kernel32/kernel32.spec
View file @
dc72519c
...
@@ -1205,7 +1205,7 @@
...
@@ -1205,7 +1205,7 @@
@ stdcall -import ReadConsoleOutputW(long ptr long long ptr)
@ stdcall -import ReadConsoleOutputW(long ptr long long ptr)
@ stdcall -import ReadConsoleW(long ptr long ptr ptr)
@ stdcall -import ReadConsoleW(long ptr long ptr ptr)
@ stdcall -import ReadDirectoryChangesW(long ptr long long long ptr ptr ptr)
@ stdcall -import ReadDirectoryChangesW(long ptr long long long ptr ptr ptr)
@ stdcall
ReadFile(long ptr long ptr ptr) KERNEL32_ReadFile
@ stdcall
-import ReadFile(long ptr long ptr ptr)
@ stdcall -import ReadFileEx(long ptr long ptr ptr)
@ stdcall -import ReadFileEx(long ptr long ptr ptr)
@ stdcall -import ReadFileScatter(long ptr long ptr ptr)
@ stdcall -import ReadFileScatter(long ptr long ptr ptr)
@ stdcall -import ReadProcessMemory(long ptr ptr long ptr)
@ stdcall -import ReadProcessMemory(long ptr ptr long ptr)
...
...
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