fix GDI fullscreen

This commit is contained in:
FunkyFr3sh 2019-08-07 02:04:07 +02:00
parent aadfd7fefd
commit 170946c4d3
2 changed files with 25 additions and 22 deletions

View file

@ -145,7 +145,12 @@ void Hook_TryHotPatch(char *moduleName, char *functionName, PROC newFunction, PR
*function = Hook_HotPatch(org, newFunction);
if (*function == org) // hotpatch failed...
{
Hook_PatchIAT(GetModuleHandle(NULL), moduleName, functionName, newFunction);
if (ddraw->bnetHack)
Hook_PatchIAT(GetModuleHandle("storm.dll"), moduleName, functionName, newFunction);
}
}
else
{