1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

Fix a recursive call when DirectDraw is created more than once

This commit is contained in:
Toni Spets 2010-11-08 21:42:23 +02:00
parent 88bac67fd5
commit 17968c433c

2
main.c
View File

@ -370,6 +370,8 @@ ULONG __stdcall ddraw_Release(IDirectDrawImpl *This)
if(This->Ref == 0)
{
/* restore old wndproc, subsequent ddraw creation will otherwise fail */
SetWindowLong(This->hWnd, GWL_WNDPROC, (LONG)This->WndProc);
//free(This);
ddraw = NULL;
return 0;