Skip to content

Commit f7a3496

Browse files
committed
LoadLibrary returns NULL if loading failed
1 parent 6f4f2bd commit f7a3496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/DllLoader/DllLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void LoadFromFile(void)
1414
{
1515
addNumberProc addNumber;
1616
HINSTANCE handle = LoadLibrary(DLL_FILE);
17-
if (handle == INVALID_HANDLE_VALUE)
17+
if (handle == NULL)
1818
return;
1919

2020
addNumber = (addNumberProc)GetProcAddress(handle, "addNumbers");

0 commit comments

Comments
 (0)