From eebf17ac23b41f20f0a35f1c4c5f94c98a8aa977 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Sat, 26 Nov 2016 21:19:02 +0000 Subject: [PATCH] Restore XREF only function handler, seems like it was too early to remove this --- src/CxbxKrnl/HLEIntercept.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CxbxKrnl/HLEIntercept.cpp b/src/CxbxKrnl/HLEIntercept.cpp index 210277096..4e6466295 100644 --- a/src/CxbxKrnl/HLEIntercept.cpp +++ b/src/CxbxKrnl/HLEIntercept.cpp @@ -776,7 +776,11 @@ static void EmuInstallWrappers(OOVPATable *OovpaTable, uint32 OovpaTableSize, Xb DbgPrintf("HLE: 0x%.08X -> %s\n", pFunc, OovpaTable[a].szFuncName); #endif - if(OovpaTable[a].lpRedirect != 0) + if(OovpaTable[a].lpRedirect == 0) + { + EmuInstallWrapper(pFunc, EmuXRefFailure); + } + else { EmuInstallWrapper(pFunc, OovpaTable[a].lpRedirect); funcExclude[fcount++] = (uint32)pFunc;