regsvr32: Use correct exit code when LoadLibraryEx fails.
This commit is contained in:
parent
68a5642d5c
commit
4a4baf2566
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue