1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

regsvr32: Use correct exit code when LoadLibraryEx fails.

This commit is contained in:
Hugh McMaster 2015-09-02 21:12:27 +10:00 committed by Alexandre Julliard
parent 68a5642d5c
commit 4a4baf2566
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -19,6 +19,7 @@
*/
/* Exit codes */
#define LOADLIBRARY_FAILED 3
#define GETPROCADDRESS_FAILED 4
/* Resource strings */