From 268fa0225d6608a74986feac55fe722bf7144fae Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Sat, 23 Nov 2013 18:55:16 -0800 Subject: [PATCH] os-windows: Remove FACTOR_DLL which is NULL and only used in one place. --- vm/os-windows.cpp | 2 +- vm/os-windows.hpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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