Commit 4a4baf25 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regsvr32: Use correct exit code when LoadLibraryEx fails.

parent 68a5642d
......@@ -107,7 +107,7 @@ static VOID *LoadProc(const WCHAR* strDll, const char* procName, HMODULE* DllHan
if(!*DllHandle)
{
output_write(STRING_DLL_LOAD_FAILED, strDll);
ExitProcess(1);
ExitProcess(LOADLIBRARY_FAILED);
}
proc = (VOID *) GetProcAddress(*DllHandle, procName);
if(!proc)
......
......@@ -19,6 +19,7 @@
*/
/* Exit codes */
#define LOADLIBRARY_FAILED 3
#define GETPROCADDRESS_FAILED 4
/* Resource strings */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment