mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
Send WM_USER with NULL hWnd on exit so the plugin knows
This commit is contained in:
parent
30f5b46e6c
commit
b29cf0a0e6
5
main.c
5
main.c
@ -526,6 +526,11 @@ ULONG __stdcall ddraw_Release(IDirectDrawImpl *This)
|
|||||||
|
|
||||||
if(This->Ref == 0)
|
if(This->Ref == 0)
|
||||||
{
|
{
|
||||||
|
if (This->hWnd && This->renderer == render_dummy_main)
|
||||||
|
{
|
||||||
|
PostMessage(This->hWnd, WM_USER, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
if(This->render.run)
|
if(This->render.run)
|
||||||
{
|
{
|
||||||
EnterCriticalSection(&This->cs);
|
EnterCriticalSection(&This->cs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user