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
21b82167
Commit
21b82167
authored
Jul 12, 2014
by
Thomas Faber
Committed by
Alexandre Julliard
Jul 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Do not omit mandatory argument to WriteFile.
parent
9609df86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
d3dxof.c
dlls/d3dxof/d3dxof.c
+4
-2
No files found.
dlls/d3dxof/d3dxof.c
View file @
21b82167
...
...
@@ -136,6 +136,7 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV
HRESULT
hr
;
LPBYTE
file_buffer
;
DWORD
file_size
;
DWORD
bytes_written
;
TRACE
(
"(%p/%p)->(%p,%x,%p)
\n
"
,
This
,
iface
,
pvSource
,
dwLoadOptions
,
ppEnumObj
);
...
...
@@ -240,7 +241,7 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV
file
=
CreateFileA
(
tmp
,
GENERIC_WRITE
,
FILE_SHARE_READ
,
NULL
,
CREATE_ALWAYS
,
0
,
NULL
);
if
(
file
!=
INVALID_HANDLE_VALUE
)
{
WriteFile
(
file
,
file_buffer
,
file_size
,
NULL
,
NULL
);
WriteFile
(
file
,
file_buffer
,
file_size
,
&
bytes_written
,
NULL
);
CloseHandle
(
file
);
}
}
...
...
@@ -304,6 +305,7 @@ static HRESULT WINAPI IDirectXFileImpl_RegisterTemplates(IDirectXFile* iface, LP
parse_buffer
buf
;
HRESULT
hr
;
LPBYTE
decomp_buffer
=
NULL
;
DWORD
bytes_written
;
ZeroMemory
(
&
buf
,
sizeof
(
buf
));
buf
.
buffer
=
pvData
;
...
...
@@ -325,7 +327,7 @@ static HRESULT WINAPI IDirectXFileImpl_RegisterTemplates(IDirectXFile* iface, LP
file
=
CreateFileA
(
tmp
,
GENERIC_WRITE
,
FILE_SHARE_READ
,
NULL
,
CREATE_ALWAYS
,
0
,
NULL
);
if
(
file
!=
INVALID_HANDLE_VALUE
)
{
WriteFile
(
file
,
pvData
,
cbSize
,
NULL
,
NULL
);
WriteFile
(
file
,
pvData
,
cbSize
,
&
bytes_written
,
NULL
);
CloseHandle
(
file
);
}
}
...
...
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