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
5525cab2
Commit
5525cab2
authored
Dec 02, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed no longer needed dll separation hack.
parent
04ecca54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
39 deletions
+2
-39
file.c
files/file.c
+2
-39
No files found.
files/file.c
View file @
5525cab2
...
...
@@ -320,43 +320,6 @@ HANDLE WINAPI GetConsoleInputWaitHandle(void)
/* end of FIXME */
/* FIXME: those routines defined as pointers are needed, because this file is
* currently compiled into NTDLL whereas it belongs to kernel32.
* this shall go away once all the DLL separation process is done
*/
typedef
BOOL
(
WINAPI
*
pRW
)(
HANDLE
,
const
void
*
,
DWORD
,
DWORD
*
,
void
*
);
static
BOOL
FILE_ReadConsole
(
HANDLE
hCon
,
void
*
buf
,
DWORD
nb
,
DWORD
*
nr
,
void
*
p
)
{
static
HANDLE
hKernel
/* = 0 */
;
static
pRW
pReadConsole
/* = 0 */
;
if
((
!
hKernel
&&
!
(
hKernel
=
LoadLibraryA
(
"kernel32"
)))
||
(
!
pReadConsole
&&
!
(
pReadConsole
=
GetProcAddress
(
hKernel
,
"ReadConsoleA"
))))
{
*
nr
=
0
;
return
0
;
}
return
(
pReadConsole
)(
hCon
,
buf
,
nb
,
nr
,
p
);
}
static
BOOL
FILE_WriteConsole
(
HANDLE
hCon
,
const
void
*
buf
,
DWORD
nb
,
DWORD
*
nr
,
void
*
p
)
{
static
HANDLE
hKernel
/* = 0 */
;
static
pRW
pWriteConsole
/* = 0 */
;
if
((
!
hKernel
&&
!
(
hKernel
=
LoadLibraryA
(
"kernel32"
)))
||
(
!
pWriteConsole
&&
!
(
pWriteConsole
=
GetProcAddress
(
hKernel
,
"WriteConsoleA"
))))
{
*
nr
=
0
;
return
0
;
}
return
(
pWriteConsole
)(
hCon
,
buf
,
nb
,
nr
,
p
);
}
/* end of FIXME */
/***********************************************************************
* FILE_CreateFile
*
...
...
@@ -1527,7 +1490,7 @@ BOOL WINAPI ReadFile( HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
return
FALSE
;
}
if
(
is_console_handle
(
hFile
))
return
FILE_ReadConsole
(
hFile
,
buffer
,
bytesToRead
,
bytesRead
,
NULL
);
return
ReadConsoleA
(
hFile
,
buffer
,
bytesToRead
,
bytesRead
,
NULL
);
if
(
overlapped
!=
NULL
)
{
...
...
@@ -1603,7 +1566,7 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
hFile
,
buffer
,
bytesToWrite
,
bytesWritten
,
overlapped
);
if
(
is_console_handle
(
hFile
))
return
FILE_WriteConsole
(
hFile
,
buffer
,
bytesToWrite
,
bytesWritten
,
NULL
);
return
WriteConsoleA
(
hFile
,
buffer
,
bytesToWrite
,
bytesWritten
,
NULL
);
if
(
IsBadReadPtr
(
buffer
,
bytesToWrite
))
{
...
...
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