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
8481c8df
Commit
8481c8df
authored
May 24, 2005
by
Rein Klazes
Committed by
Alexandre Julliard
May 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around a problem where WriteFile is asked to write memory
protected by DIBSection code.
parent
97d1b11e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
file.c
dlls/kernel/file.c
+10
-0
No files found.
dlls/kernel/file.c
View file @
8481c8df
...
...
@@ -451,6 +451,16 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
status
=
NtWriteFile
(
hFile
,
hEvent
,
NULL
,
NULL
,
piosb
,
buffer
,
bytesToWrite
,
poffset
,
NULL
);
/* FIXME: NtWriteFile does not always cause page faults, generate them now */
if
(
status
==
STATUS_INVALID_USER_BUFFER
&&
!
IsBadReadPtr
(
buffer
,
bytesToWrite
))
{
status
=
NtWriteFile
(
hFile
,
hEvent
,
NULL
,
NULL
,
piosb
,
buffer
,
bytesToWrite
,
poffset
,
NULL
);
if
(
status
!=
STATUS_INVALID_USER_BUFFER
)
FIXME
(
"Could not access memory (%p,%ld) at first, now OK. Protected by DIBSection code?
\n
"
,
buffer
,
bytesToWrite
);
}
if
(
status
!=
STATUS_PENDING
&&
bytesWritten
)
*
bytesWritten
=
piosb
->
Information
;
...
...
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