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

tweak old xp workaround

This commit is contained in:
FunkyFr3sh 2019-08-07 03:22:52 +02:00
parent 92e4a85160
commit c8fc032cd2

View File

@ -1754,6 +1754,9 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk
{
This->DirectDrawCreate =
(HRESULT(WINAPI *)(GUID FAR*, LPDIRECTDRAW FAR*, IUnknown FAR*))GetProcAddress(This->real_dll, "DirectDrawCreate");
if (This->DirectDrawCreate == DirectDrawCreate)
This->DirectDrawCreate = NULL;
}
InitializeCriticalSection(&This->cs);