diff --git a/vm/os-windows.cpp b/vm/os-windows.cpp index 43e70a3368..5b29f23f02 100644 --- a/vm/os-windows.cpp +++ b/vm/os-windows.cpp @@ -5,7 +5,7 @@ namespace factor { HMODULE hFactorDll; void factor_vm::init_ffi() { - hFactorDll = GetModuleHandle(FACTOR_DLL); + hFactorDll = GetModuleHandle(NULL); if (!hFactorDll) fatal_error("GetModuleHandle() failed", 0); } diff --git a/vm/os-windows.hpp b/vm/os-windows.hpp index 1f9a1da715..dd429340fd 100644 --- a/vm/os-windows.hpp +++ b/vm/os-windows.hpp @@ -50,8 +50,6 @@ typedef HANDLE THREADHANDLE; #define FACTOR_OS_STRING "windows" -#define FACTOR_DLL NULL - // SSE traps raise these exception codes, which are defined in internal NT // headers // but not winbase.h