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
545f83bc
Commit
545f83bc
authored
Sep 12, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddrawex: Avoid LPVOID.
parent
3c6d1170
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
18 deletions
+13
-18
ddrawex_private.h
dlls/ddrawex/ddrawex_private.h
+1
-1
main.c
dlls/ddrawex/main.c
+9
-14
ddrawex.c
dlls/ddrawex/tests/ddrawex.c
+1
-1
ddrawex.h
dlls/ddrawex/tests/ddrawex.h
+1
-1
surface.c
dlls/ddrawex/tests/surface.c
+1
-1
No files found.
dlls/ddrawex/ddrawex_private.h
View file @
545f83bc
...
...
@@ -30,7 +30,7 @@ DECLARE_INTERFACE_(IDirectDrawFactory, IUnknown)
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
STDMETHOD
(
CreateDirectDraw
)(
THIS_
GUID
*
pGUID
,
HWND
hWnd
,
DWORD
dwCoopLevelFlags
,
DWORD
dwReserved
,
IUnknown
*
pUnkOuter
,
IDirectDraw
**
ppDirectDraw
)
PURE
;
STDMETHOD
(
_DirectDrawEnumerate
)(
THIS_
LPDDENUMCALLBACKW
lpCallback
,
LPVOID
lpContext
)
PURE
;
STDMETHOD
(
_DirectDrawEnumerate
)(
THIS_
LPDDENUMCALLBACKW
cb
,
void
*
ctx
)
PURE
;
};
#undef INTERFACE
...
...
dlls/ddrawex/main.c
View file @
545f83bc
...
...
@@ -43,7 +43,7 @@ typedef struct
{
IClassFactory
IClassFactory_iface
;
LONG
ref
;
HRESULT
(
*
pfnCreateInstance
)(
IUnknown
*
pUnkOuter
,
REFIID
iid
,
LPVOID
*
ppObj
);
HRESULT
(
*
pfnCreateInstance
)(
IUnknown
*
outer
,
REFIID
iid
,
void
**
out
);
}
IClassFactoryImpl
;
static
inline
IClassFactoryImpl
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
...
...
@@ -215,13 +215,8 @@ static ULONG WINAPI IDirectDrawFactoryImpl_Release(IDirectDrawFactory *iface)
return
ref
;
}
/*******************************************************************************
* IDirectDrawFactoryImpl_DirectDrawEnumerate
*******************************************************************************/
static
HRESULT
WINAPI
IDirectDrawFactoryImpl_DirectDrawEnumerate
(
IDirectDrawFactory
*
iface
,
LPDDENUMCALLBACKW
lpCallback
,
LPVOID
lpContext
)
static
HRESULT
WINAPI
IDirectDrawFactoryImpl_DirectDrawEnumerate
(
IDirectDrawFactory
*
iface
,
LPDDENUMCALLBACKW
cb
,
void
*
ctx
)
{
FIXME
(
"Stub!
\n
"
);
return
E_FAIL
;
...
...
@@ -286,11 +281,11 @@ HRESULT WINAPI DllCanUnloadNow(void)
/*******************************************************************************
* DllGetClassObject [DDRAWEX.@]
*/
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
)
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
riid
,
void
**
out
)
{
IClassFactoryImpl
*
factory
;
TRACE
(
"
ddrawex (%s,%s,%p)
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
ppv
);
TRACE
(
"
rclsid %s, riid %s, out %p.
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
out
);
if
(
!
IsEqualGUID
(
&
IID_IClassFactory
,
riid
)
&&
!
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
...
...
@@ -310,7 +305,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
factory
->
pfnCreateInstance
=
CreateDirectDrawFactory
;
*
ppv
=
factory
;
*
out
=
factory
;
return
S_OK
;
}
...
...
@@ -319,13 +314,13 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
/***********************************************************************
* DllMain
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
reason
,
LPVOID
lpv
)
BOOL
WINAPI
DllMain
(
HINSTANCE
inst
,
DWORD
reason
,
void
*
reserved
)
{
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
instance
=
hInstDLL
;
DisableThreadLibraryCalls
(
hInstDLL
);
instance
=
inst
;
DisableThreadLibraryCalls
(
inst
);
break
;
}
return
TRUE
;
...
...
dlls/ddrawex/tests/ddrawex.c
View file @
545f83bc
...
...
@@ -25,7 +25,7 @@
#include "unknwn.h"
static
IDirectDrawFactory
*
factory
;
static
HRESULT
(
WINAPI
*
pDllGetClassObject
)(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
);
static
HRESULT
(
WINAPI
*
pDllGetClassObject
)(
REFCLSID
rclsid
,
REFIID
riid
,
void
**
out
);
static
IDirectDraw
*
createDD
(
void
)
{
...
...
dlls/ddrawex/tests/ddrawex.h
View file @
545f83bc
...
...
@@ -30,7 +30,7 @@ DECLARE_INTERFACE_(IDirectDrawFactory, IUnknown)
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
STDMETHOD
(
CreateDirectDraw
)(
THIS_
GUID
*
pGUID
,
HWND
hWnd
,
DWORD
dwCoopLevelFlags
,
DWORD
dwReserved
,
IUnknown
*
pUnkOuter
,
IDirectDraw
**
ppDirectDraw
)
PURE
;
STDMETHOD
(
_DirectDrawEnumerate
)(
THIS_
LPDDENUMCALLBACKW
lpCallback
,
LPVOID
lpContext
)
PURE
;
STDMETHOD
(
_DirectDrawEnumerate
)(
THIS_
LPDDENUMCALLBACKW
cb
,
void
*
ctx
)
PURE
;
};
#undef INTERFACE
...
...
dlls/ddrawex/tests/surface.c
View file @
545f83bc
...
...
@@ -27,7 +27,7 @@
#include "unknwn.h"
static
IDirectDrawFactory
*
factory
;
static
HRESULT
(
WINAPI
*
pDllGetClassObject
)(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
);
static
HRESULT
(
WINAPI
*
pDllGetClassObject
)(
REFCLSID
rclsid
,
REFIID
riid
,
void
**
out
);
static
IDirectDraw
*
createDD
(
void
)
{
...
...
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