Author: greatlrd
Date: Fri Dec 3 12:36:39 2010
New Revision: 49922
URL:
http://svn.reactos.org/svn/reactos?rev=49922&view=rev
Log:
fix few bugs in DirectDraw_QueryInterface
return same internal directdraw struct in some case the frist one.
Modified:
branches/reactx/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
Modified: branches/reactx/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/directx/ddra…
==============================================================================
--- branches/reactx/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c [iso-8859-1] (original)
+++ branches/reactx/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c [iso-8859-1] Fri Dec 3
12:36:39 2010
@@ -247,7 +247,7 @@
HRESULT WINAPI
Main_DirectDraw_Initialize (LPDDRAWI_DIRECTDRAW_INT This, LPGUID lpGUID)
{
- return DDERR_ALREADYINITIALIZED;
+ return DDERR_ALREADYINITIALIZED;
}
@@ -518,7 +518,7 @@
LPDDRAWI_DDRAWSURFACE_INT *ppSurf, IUnknown *pUnkOuter)
{
HRESULT ret = DD_OK;
- DX_WINDBG_trace();
+ DX_WINDBG_trace()
EnterCriticalSection(&ddcs);
*ppSurf = NULL;
@@ -546,7 +546,7 @@
HRESULT WINAPI Main_DirectDraw_CreatePalette(LPDDRAWI_DIRECTDRAW_INT This, DWORD
dwFlags,
LPPALETTEENTRY palent, LPDIRECTDRAWPALETTE* ppPalette, LPUNKNOWN
pUnkOuter)
{
- HRESULT ret = DD_OK;
+ HRESULT ret = DD_OK;
DX_WINDBG_trace();
EnterCriticalSection(&ddcs);