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

Send WM_USER with NULL hWnd on exit so the plugin knows

This commit is contained in:
Toni Spets 2011-08-28 13:56:10 +03:00
parent 30f5b46e6c
commit b29cf0a0e6

5
main.c
View File

@ -526,6 +526,11 @@ ULONG __stdcall ddraw_Release(IDirectDrawImpl *This)
if(This->Ref == 0)
{
if (This->hWnd && This->renderer == render_dummy_main)
{
PostMessage(This->hWnd, WM_USER, 0, 0);
}
if(This->render.run)
{
EnterCriticalSection(&This->cs);