fix for last commit
This commit is contained in:
parent
9e9783f8d2
commit
810fac999a
1 changed files with 5 additions and 1 deletions
|
@ -929,7 +929,11 @@ HRESULT dds_SetPalette(IDirectDrawSurfaceImpl *This, LPDIRECTDRAWPALETTE lpDDPal
|
|||
IDirectDrawPalette_Release(This->palette);
|
||||
}
|
||||
|
||||
This->palette = (IDirectDrawPaletteImpl *)lpDDPalette;
|
||||
EnterCriticalSection(&g_ddraw->cs);
|
||||
|
||||
This->palette = (IDirectDrawPaletteImpl*)lpDDPalette;
|
||||
|
||||
LeaveCriticalSection(&g_ddraw->cs);
|
||||
|
||||
return DD_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue