os-windows: Remove FACTOR_DLL which is NULL and only used in one place.

db4
Doug Coleman 2013-11-23 18:55:16 -08:00
parent 0a5cdfa3e6
commit 268fa0225d
2 changed files with 1 additions and 3 deletions

View File

@ -5,7 +5,7 @@ namespace factor {
HMODULE hFactorDll; HMODULE hFactorDll;
void factor_vm::init_ffi() { void factor_vm::init_ffi() {
hFactorDll = GetModuleHandle(FACTOR_DLL); hFactorDll = GetModuleHandle(NULL);
if (!hFactorDll) if (!hFactorDll)
fatal_error("GetModuleHandle() failed", 0); fatal_error("GetModuleHandle() failed", 0);
} }

View File

@ -50,8 +50,6 @@ typedef HANDLE THREADHANDLE;
#define FACTOR_OS_STRING "windows" #define FACTOR_OS_STRING "windows"
#define FACTOR_DLL NULL
// SSE traps raise these exception codes, which are defined in internal NT // SSE traps raise these exception codes, which are defined in internal NT
// headers // headers
// but not winbase.h // but not winbase.h