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
ff5ecfd8
Commit
ff5ecfd8
authored
Aug 30, 2004
by
Filip Navara
Committed by
Alexandre Julliard
Aug 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For non-overlapped writes the lpNumberOfBytesWritten parameter of
WriteFile mustn't be NULL.
parent
d660a634
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
typelib2.c
dlls/oleaut32/typelib2.c
+7
-2
No files found.
dlls/oleaut32/typelib2.c
View file @
ff5ecfd8
...
...
@@ -3222,14 +3222,19 @@ static HRESULT WINAPI ICreateTypeLib2_fnSetLibFlags(ICreateTypeLib2 * iface, UIN
static
int
ctl2_write_chunk
(
HANDLE
hFile
,
void
*
segment
,
int
length
)
{
if
(
!
WriteFile
(
hFile
,
segment
,
length
,
NULL
,
0
))
{
CloseHandle
(
hFile
);
return
0
;}
DWORD
dwWritten
;
if
(
!
WriteFile
(
hFile
,
segment
,
length
,
&
dwWritten
,
0
))
{
CloseHandle
(
hFile
);
return
0
;
}
return
-
1
;
}
static
int
ctl2_write_segment
(
ICreateTypeLib2Impl
*
This
,
HANDLE
hFile
,
int
segment
)
{
DWORD
dwWritten
;
if
(
!
WriteFile
(
hFile
,
This
->
typelib_segment_data
[
segment
],
This
->
typelib_segdir
[
segment
].
length
,
NULL
,
0
))
{
This
->
typelib_segdir
[
segment
].
length
,
&
dwWritten
,
0
))
{
CloseHandle
(
hFile
);
return
0
;
}
...
...
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