mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Never, Never do if (FALSE) it will make dead code. activate dead code after DrFreds bug.
svn path=/trunk/; revision=18996
This commit is contained in:
parent
266f0076b8
commit
8886eb415a
2 changed files with 7 additions and 5 deletions
|
@ -16,12 +16,13 @@ HRESULT WINAPI Main_DirectDraw_Initialize (LPDIRECTDRAW7 iface, LPGUID lpGUID)
|
||||||
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
|
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
|
||||||
HRESULT ret;
|
HRESULT ret;
|
||||||
|
|
||||||
// this if it is not called by DirectDrawCreate
|
if (This->InitializeDraw == TRUE)
|
||||||
if(FALSE)
|
|
||||||
return DDERR_ALREADYINITIALIZED;
|
return DDERR_ALREADYINITIALIZED;
|
||||||
|
|
||||||
// save the parameter
|
This->InitializeDraw = TRUE;
|
||||||
This->lpGUID = lpGUID;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// get the HDC
|
// get the HDC
|
||||||
This->hdc = GetWindowDC(GetDesktopWindow());
|
This->hdc = GetWindowDC(GetDesktopWindow());
|
||||||
|
|
|
@ -28,7 +28,8 @@ typedef struct
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
int Height, Width, Bpp;
|
int Height, Width, Bpp;
|
||||||
|
|
||||||
GUID* lpGUID;
|
GUID InGUID;
|
||||||
|
BOOL InitializeDraw;
|
||||||
|
|
||||||
} IDirectDrawImpl;
|
} IDirectDrawImpl;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue