Send WM_USER with NULL hWnd on exit so the plugin knows
This commit is contained in:
parent
30f5b46e6c
commit
b29cf0a0e6
1 changed files with 5 additions and 0 deletions
5
main.c
5
main.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue