mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-21 06:05:55 -04:00
LoadLibrary returns NULL if loading failed
This commit is contained in:
@@ -14,7 +14,7 @@ void LoadFromFile(void)
|
||||
{
|
||||
addNumberProc addNumber;
|
||||
HINSTANCE handle = LoadLibrary(DLL_FILE);
|
||||
if (handle == INVALID_HANDLE_VALUE)
|
||||
if (handle == NULL)
|
||||
return;
|
||||
|
||||
addNumber = (addNumberProc)GetProcAddress(handle, "addNumbers");
|
||||
|
||||
Reference in New Issue
Block a user