Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
95f26324
Commit
95f26324
authored
Dec 15, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddrawex: Avoid not necessary casts.
parent
8836dea1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ddrawex_private.h
dlls/ddrawex/ddrawex_private.h
+2
-2
main.c
dlls/ddrawex/main.c
+3
-3
No files found.
dlls/ddrawex/ddrawex_private.h
View file @
95f26324
...
...
@@ -48,7 +48,7 @@ DECLARE_INTERFACE_(IDirectDrawFactory, IUnknown)
******************************************************************************/
typedef
struct
{
IClassFactory
*
lpVtbl
;
const
IClassFactoryVtbl
*
lpVtbl
;
LONG
ref
;
HRESULT
(
*
pfnCreateInstance
)(
IUnknown
*
pUnkOuter
,
REFIID
iid
,
LPVOID
*
ppObj
);
}
IClassFactoryImpl
;
...
...
@@ -59,7 +59,7 @@ typedef struct
******************************************************************************/
typedef
struct
{
IDirectDrawFactory
*
lpVtbl
;
const
IDirectDrawFactoryVtbl
*
lpVtbl
;
LONG
ref
;
}
IDirectDrawFactoryImpl
;
...
...
dlls/ddrawex/main.c
View file @
95f26324
...
...
@@ -272,9 +272,9 @@ CreateDirectDrawFactory(IUnknown* UnkOuter, REFIID iid, void **obj)
return
E_OUTOFMEMORY
;
}
This
->
lpVtbl
=
(
IDirectDrawFactory
*
)
&
IDirectDrawFactory_Vtbl
;
This
->
lpVtbl
=
&
IDirectDrawFactory_Vtbl
;
hr
=
IDirectDrawFactory_QueryInterface
(
This
->
lpVtbl
,
iid
,
obj
);
hr
=
IDirectDrawFactory_QueryInterface
(
(
IDirectDrawFactory
*
)
This
,
iid
,
obj
);
if
(
FAILED
(
hr
))
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -315,7 +315,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
factory
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
factory
));
if
(
factory
==
NULL
)
return
E_OUTOFMEMORY
;
factory
->
lpVtbl
=
(
IClassFactory
*
)
&
IClassFactory_Vtbl
;
factory
->
lpVtbl
=
&
IClassFactory_Vtbl
;
factory
->
ref
=
1
;
factory
->
pfnCreateInstance
=
CreateDirectDrawFactory
;
...
...
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