Improve regsvr32 output.

This commit is contained in:
Andreas Mohr 2005-07-30 19:04:14 +00:00 committed by Alexandre Julliard
parent 5b2810bb2b
commit 828fd75a96
1 changed files with 8 additions and 8 deletions

View File

@ -86,7 +86,7 @@ static VOID *LoadProc(const char* strDll, const char* procName, HMODULE* DllHand
if(!*DllHandle) if(!*DllHandle)
{ {
if(!Silent) if(!Silent)
printf("Dll %s not found\n", strDll); printf("Failed to load DLL %s\n", strDll);
exit(-1); exit(-1);
} }
@ -94,7 +94,7 @@ static VOID *LoadProc(const char* strDll, const char* procName, HMODULE* DllHand
if(!proc) if(!proc)
{ {
if(!Silent) if(!Silent)
printf("%s not implemented in dll %s\n", procName, strDll); printf("%s not implemented in DLL %s\n", procName, strDll);
FreeLibrary(*DllHandle); FreeLibrary(*DllHandle);
exit(-1); exit(-1);
} }
@ -113,12 +113,12 @@ static int RegisterDll(const char* strDll)
if(FAILED(hr)) if(FAILED(hr))
{ {
if(!Silent) if(!Silent)
printf("Failed to register dll %s\n", strDll); printf("Failed to register DLL %s\n", strDll);
return -1; return -1;
} }
if(!Silent) if(!Silent)
printf("Successfully registered dll %s\n", strDll); printf("Successfully registered DLL %s\n", strDll);
if(DllHandle) if(DllHandle)
FreeLibrary(DllHandle); FreeLibrary(DllHandle);
@ -136,12 +136,12 @@ static int UnregisterDll(char* strDll)
if(FAILED(hr)) if(FAILED(hr))
{ {
if(!Silent) if(!Silent)
printf("Failed to unregister dll %s\n", strDll); printf("Failed to unregister DLL %s\n", strDll);
return -1; return -1;
} }
if(!Silent) if(!Silent)
printf("Successfully unregistered dll %s\n", strDll); printf("Successfully unregistered DLL %s\n", strDll);
if(DllHandle) if(DllHandle)
FreeLibrary(DllHandle); FreeLibrary(DllHandle);
@ -159,12 +159,12 @@ static int InstallDll(BOOL install, char *strDll, WCHAR *command_line)
if(FAILED(hr)) if(FAILED(hr))
{ {
if(!Silent) if(!Silent)
printf("Failed to %s dll %s\n", install ? "install" : "uninstall", printf("Failed to %s DLL %s\n", install ? "install" : "uninstall",
strDll); strDll);
return -1; return -1;
} }
if(!Silent) if(!Silent)
printf("Successfully %s dll %s\n", install ? "installed" : "uninstalled", printf("Successfully %s DLL %s\n", install ? "installed" : "uninstalled",
strDll); strDll);
if(DllHandle) if(DllHandle)