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
db412878
Commit
db412878
authored
Jul 03, 2009
by
David Adam
Committed by
Alexandre Julliard
Jul 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Fix tests to make them pass in Windows.
parent
1d5cb9d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
texture.c
dlls/d3dx9_36/tests/texture.c
+9
-4
No files found.
dlls/d3dx9_36/tests/texture.c
View file @
db412878
...
...
@@ -62,15 +62,20 @@ static const unsigned char noimage[4] = {
static
HRESULT
create_file
(
const
char
*
filename
,
const
unsigned
char
*
data
,
const
unsigned
int
size
)
{
DWORD
received
;
HANDLE
hfile
;
hfile
=
CreateFileA
(
filename
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
NULL
);
hfile
=
CreateFileA
(
filename
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
0
);
if
(
hfile
==
INVALID_HANDLE_VALUE
)
return
HRESULT_FROM_WIN32
(
GetLastError
());
WriteFile
(
hfile
,
data
,
size
,
NULL
,
NULL
);
CloseHandle
(
hfile
);
if
(
WriteFile
(
hfile
,
data
,
size
,
&
received
,
NULL
))
{
CloseHandle
(
hfile
);
return
D3D_OK
;
}
return
D3D_OK
;
CloseHandle
(
hfile
);
return
D3DERR_INVALIDCALL
;
}
static
void
test_D3DXGetImageInfo
()
...
...
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