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
2df012a0
Commit
2df012a0
authored
Mar 18, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Use LONG instead of long.
parent
d4c2a387
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
d3d9ex.c
dlls/d3d9/tests/d3d9ex.c
+8
-8
surface.c
dlls/d3d9/tests/surface.c
+1
-1
visual.c
dlls/d3d9/tests/visual.c
+2
-2
No files found.
dlls/d3d9/tests/d3d9ex.c
View file @
2df012a0
...
...
@@ -43,7 +43,7 @@ static HWND create_window(void)
return
ret
;
}
static
unsigned
long
getref
(
IUnknown
*
obj
)
{
static
ULONG
getref
(
IUnknown
*
obj
)
{
IUnknown_AddRef
(
obj
);
return
IUnknown_Release
(
obj
);
}
...
...
@@ -108,7 +108,7 @@ static void test_qi_ex_to_base(void)
HRESULT
hr
;
HWND
window
=
create_window
();
D3DPRESENT_PARAMETERS
present_parameters
;
unsigned
long
ref
;
ULONG
ref
;
hr
=
pDirect3DCreate9Ex
(
D3D_SDK_VERSION
,
&
d3d9ex
);
ok
(
hr
==
D3D_OK
||
hr
==
D3DERR_NOTAVAILABLE
,
"Direct3DCreate9Ex returned %08x
\n
"
,
hr
);
...
...
@@ -124,9 +124,9 @@ static void test_qi_ex_to_base(void)
ok
(
d3d9
!=
NULL
&&
d3d9
!=
(
void
*
)
0xdeadbeef
,
"QueryInterface returned interface %p, expected != NULL && != 0xdeadbeef
\n
"
,
d3d9
);
ref
=
getref
((
IUnknown
*
)
d3d9ex
);
ok
(
ref
==
2
,
"IDirect3D9Ex refcount is %
l
d, expected 2
\n
"
,
ref
);
ok
(
ref
==
2
,
"IDirect3D9Ex refcount is %d, expected 2
\n
"
,
ref
);
ref
=
getref
((
IUnknown
*
)
d3d9
);
ok
(
ref
==
2
,
"IDirect3D9 refcount is %
l
d, expected 2
\n
"
,
ref
);
ok
(
ref
==
2
,
"IDirect3D9 refcount is %d, expected 2
\n
"
,
ref
);
memset
(
&
present_parameters
,
0
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
TRUE
;
...
...
@@ -151,9 +151,9 @@ static void test_qi_ex_to_base(void)
ok
(
deviceEx
!=
NULL
&&
deviceEx
!=
(
void
*
)
0xdeadbeef
,
"QueryInterface returned interface %p, expected != NULL && != 0xdeadbeef
\n
"
,
deviceEx
);
ref
=
getref
((
IUnknown
*
)
device
);
ok
(
ref
==
2
,
"IDirect3DDevice9 refcount is %
l
d, expected 2
\n
"
,
ref
);
ok
(
ref
==
2
,
"IDirect3DDevice9 refcount is %d, expected 2
\n
"
,
ref
);
ref
=
getref
((
IUnknown
*
)
deviceEx
);
ok
(
ref
==
2
,
"IDirect3DDevice9Ex refcount is %
l
d, expected 2
\n
"
,
ref
);
ok
(
ref
==
2
,
"IDirect3DDevice9Ex refcount is %d, expected 2
\n
"
,
ref
);
if
(
deviceEx
)
IDirect3DDevice9Ex_Release
(
deviceEx
);
IDirect3DDevice9_Release
(
device
);
...
...
@@ -171,9 +171,9 @@ static void test_qi_ex_to_base(void)
ok
(
deviceEx
!=
NULL
&&
deviceEx
!=
(
void
*
)
0xdeadbeef
,
"QueryInterface returned interface %p, expected != NULL && != 0xdeadbeef
\n
"
,
deviceEx
);
ref
=
getref
((
IUnknown
*
)
device
);
ok
(
ref
==
2
,
"IDirect3DDevice9 refcount is %
l
d, expected 2
\n
"
,
ref
);
ok
(
ref
==
2
,
"IDirect3DDevice9 refcount is %d, expected 2
\n
"
,
ref
);
ref
=
getref
((
IUnknown
*
)
deviceEx
);
ok
(
ref
==
2
,
"IDirect3DDevice9Ex refcount is %
l
d, expected 2
\n
"
,
ref
);
ok
(
ref
==
2
,
"IDirect3DDevice9Ex refcount is %d, expected 2
\n
"
,
ref
);
if
(
deviceEx
)
IDirect3DDevice9Ex_Release
(
deviceEx
);
IDirect3DDevice9_Release
(
device
);
...
...
dlls/d3d9/tests/surface.c
View file @
2df012a0
...
...
@@ -314,7 +314,7 @@ static void test_lockrect_invalid(IDirect3DDevice9 *device)
IDirect3DSurface9_Release
(
surface
);
}
static
unsigned
long
getref
(
IUnknown
*
iface
)
static
ULONG
getref
(
IUnknown
*
iface
)
{
IUnknown_AddRef
(
iface
);
return
IUnknown_Release
(
iface
);
...
...
dlls/d3d9/tests/visual.c
View file @
2df012a0
...
...
@@ -2856,7 +2856,7 @@ static void release_buffer_test(IDirect3DDevice9 *device)
IDirect3DIndexBuffer9
*
ib
=
NULL
;
HRESULT
hr
;
BYTE
*
data
;
long
ref
;
LONG
ref
;
static
const
struct
vertex
quad
[]
=
{
{
-
1
.
0
,
-
1
.
0
,
0
.
1
,
0xffff0000
},
...
...
@@ -2905,7 +2905,7 @@ static void release_buffer_test(IDirect3DDevice9 *device)
/* Now destroy the bound index buffer and draw again */
ref
=
IDirect3DIndexBuffer9_Release
(
ib
);
ok
(
ref
==
0
,
"Index Buffer reference count is %08
l
d
\n
"
,
ref
);
ok
(
ref
==
0
,
"Index Buffer reference count is %08d
\n
"
,
ref
);
hr
=
IDirect3DDevice9_Clear
(
device
,
0
,
NULL
,
D3DCLEAR_TARGET
,
0xff0000ff
,
0
.
0
,
0
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_Clear failed with %08x
\n
"
,
hr
);
...
...
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