mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
fix a bug and some warnings in ddraw
svn path=/trunk/; revision=26403
This commit is contained in:
parent
f90ddf0d29
commit
dd05afbec1
4 changed files with 6 additions and 5 deletions
|
@ -15,7 +15,7 @@
|
|||
VOID
|
||||
Cleanup(LPDIRECTDRAW7 iface)
|
||||
{
|
||||
LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT)iface;
|
||||
//LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT)iface;
|
||||
|
||||
DX_WINDBG_trace();
|
||||
|
||||
|
|
|
@ -171,7 +171,8 @@ HRESULT WINAPI Main_DirectDraw_CreateSurface (LPDIRECTDRAW7 iface, LPDDSURFACEDE
|
|||
LPDDRAWI_DDRAWSURFACE_LCL *lpLcl;
|
||||
DWORD dwHowManySurface = 1;
|
||||
DWORD i;
|
||||
LPDDRAWI_DDRAWSURFACE_LCL *xlpLcl;
|
||||
//LPDDRAWI_DDRAWSURFACE_LCL *xlpLcl;
|
||||
|
||||
if (pUnkOuter!=NULL)
|
||||
{
|
||||
return CLASS_E_NOAGGREGATION;
|
||||
|
|
|
@ -497,7 +497,7 @@ Main_DDrawSurface_GetDC(LPDIRECTDRAWSURFACE7 iface, HDC *phDC)
|
|||
|
||||
This = (LPDDRAWI_DDRAWSURFACE_INT)iface;
|
||||
|
||||
*phDC = This->lpLcl->lpSurfMore->lpDD_lcl->hDC;
|
||||
*phDC = (HDC)This->lpLcl->lpSurfMore->lpDD_lcl->hDC;
|
||||
|
||||
return DD_OK;
|
||||
}
|
||||
|
|
|
@ -926,7 +926,7 @@ Create_DirectDraw (LPGUID pGUID,
|
|||
}
|
||||
|
||||
/* we need check the GUID lpGUID what type it is */
|
||||
if (pGUID != DDCREATE_HARDWAREONLY)
|
||||
if (pGUID != (LPGUID)DDCREATE_HARDWAREONLY)
|
||||
{
|
||||
if (pGUID !=NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue