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
47b6392b
Commit
47b6392b
authored
May 27, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
May 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Fix the name of DDSPD_IUNKNOWNPOINTER.
parent
c9533adc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
dsurface.c
dlls/ddraw/tests/dsurface.c
+7
-7
ddraw.h
include/ddraw.h
+1
-1
No files found.
dlls/ddraw/tests/dsurface.c
View file @
47b6392b
...
...
@@ -2163,15 +2163,15 @@ static void PrivateDataTest(void)
}
/* This fails */
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
/* Abuse this tag */
,
lpDD
,
0
,
DDSPD_IUNKNOWNP
T
R
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
/* Abuse this tag */
,
lpDD
,
0
,
DDSPD_IUNKNOWNP
OINTE
R
);
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"IDirectDrawSurface7_SetPrivateData failed with %08x
\n
"
,
hr
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
/* Abuse this tag */
,
lpDD
,
5
,
DDSPD_IUNKNOWNP
T
R
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
/* Abuse this tag */
,
lpDD
,
5
,
DDSPD_IUNKNOWNP
OINTE
R
);
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"IDirectDrawSurface7_SetPrivateData failed with %08x
\n
"
,
hr
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
/* Abuse this tag */
,
lpDD
,
sizeof
(
IUnknown
*
)
*
2
,
DDSPD_IUNKNOWNP
T
R
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
/* Abuse this tag */
,
lpDD
,
sizeof
(
IUnknown
*
)
*
2
,
DDSPD_IUNKNOWNP
OINTE
R
);
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"IDirectDrawSurface7_SetPrivateData failed with %08x
\n
"
,
hr
);
ref
=
getref
((
IUnknown
*
)
lpDD
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
/* Abuse this tag */
,
lpDD
,
sizeof
(
IUnknown
*
),
DDSPD_IUNKNOWNP
T
R
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
/* Abuse this tag */
,
lpDD
,
sizeof
(
IUnknown
*
),
DDSPD_IUNKNOWNP
OINTE
R
);
ok
(
hr
==
DD_OK
,
"IDirectDrawSurface7_SetPrivateData failed with %08x
\n
"
,
hr
);
ref2
=
getref
((
IUnknown
*
)
lpDD
);
ok
(
ref2
==
ref
+
1
,
"Object reference is %d, expected %d
\n
"
,
ref2
,
ref
+
1
);
...
...
@@ -2179,14 +2179,14 @@ static void PrivateDataTest(void)
ref2
=
getref
((
IUnknown
*
)
lpDD
);
ok
(
ref2
==
ref
,
"Object reference is %d, expected %d
\n
"
,
ref2
,
ref
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
,
lpDD
,
sizeof
(
IUnknown
*
),
DDSPD_IUNKNOWNP
T
R
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
,
lpDD
,
sizeof
(
IUnknown
*
),
DDSPD_IUNKNOWNP
OINTE
R
);
ok
(
hr
==
DD_OK
,
"IDirectDrawSurface7_SetPrivateData failed with %08x
\n
"
,
hr
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
,
surface7
,
sizeof
(
IUnknown
*
),
DDSPD_IUNKNOWNP
T
R
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
,
surface7
,
sizeof
(
IUnknown
*
),
DDSPD_IUNKNOWNP
OINTE
R
);
ok
(
hr
==
DD_OK
,
"IDirectDrawSurface7_SetPrivateData failed with %08x
\n
"
,
hr
);
ref2
=
getref
((
IUnknown
*
)
lpDD
);
ok
(
ref2
==
ref
,
"Object reference is %d, expected %d
\n
"
,
ref2
,
ref
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
,
lpDD
,
sizeof
(
IUnknown
*
),
DDSPD_IUNKNOWNP
T
R
);
hr
=
IDirectDrawSurface7_SetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
,
lpDD
,
sizeof
(
IUnknown
*
),
DDSPD_IUNKNOWNP
OINTE
R
);
ok
(
hr
==
DD_OK
,
"IDirectDrawSurface7_SetPrivateData failed with %08x
\n
"
,
hr
);
hr
=
IDirectDrawSurface7_GetPrivateData
(
surface7
,
&
IID_IDirectDrawSurface7
,
&
ptr
,
&
size
);
ok
(
hr
==
DD_OK
,
"IDirectDrawSurface7_GetPrivateData failed with %08x
\n
"
,
hr
);
...
...
include/ddraw.h
View file @
47b6392b
...
...
@@ -251,7 +251,7 @@ typedef struct IDirectDrawGammaControl *LPDIRECTDRAWGAMMACONTROL;
#define DDGFS_ISFLIPDONE 2L
/* dwFlags for IDirectDrawSurface7::SetPrivateData */
#define DDSPD_IUNKNOWNP
T
R 1L
#define DDSPD_IUNKNOWNP
OINTE
R 1L
#define DDSPD_VOLATILE 2L
/* DDSCAPS.dwCaps */
...
...
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