Improve regsvr32 output

Andreas Mohr andi at rhlx01.fht-esslingen.de
Fri Jul 29 13:07:07 CDT 2005


Hello all,

printing "DLL ... not found" is not enough, since it can easily be the
DLL initialization which failed (e.g. some import DLL missing), not only
the DLL itself missing.

Also changed "Dll" -> "DLL".

BTW, I'm currently experiencing this regsvr32 error message with
regsvr32 msxml3.dll.
For some reason it doesn't want to complete registration, and the relay log
so far hasn't managed to clue me in on the reason for that.

Andreas Mohr

-- 
GNU/Linux. It's not the software thats free, it's you.
-------------- next part --------------
Index: programs/regsvr32/regsvr32.c
===================================================================
RCS file: /home/wine/wine/programs/regsvr32/regsvr32.c,v
retrieving revision 1.8
diff -u -r1.8 regsvr32.c
--- programs/regsvr32/regsvr32.c	4 Jun 2005 10:01:25 -0000	1.8
+++ programs/regsvr32/regsvr32.c	29 Jul 2005 16:29:36 -0000
@@ -86,7 +86,7 @@
     if(!*DllHandle)
     {
         if(!Silent)
-            printf("Dll %s not found\n", strDll);
+            printf("Failed to find or initialize DLL %s\n", strDll);
 
         exit(-1);
     }
@@ -94,7 +94,7 @@
     if(!proc)
     {
         if(!Silent)
-            printf("%s not implemented in dll %s\n", procName, strDll);
+            printf("%s not implemented in DLL %s\n", procName, strDll);
         FreeLibrary(*DllHandle);
         exit(-1);
     }
@@ -113,12 +113,12 @@
     if(FAILED(hr))
     {
         if(!Silent)
-            printf("Failed to register dll %s\n", strDll);
+            printf("Failed to register DLL %s\n", strDll);
 
         return -1;
     }
     if(!Silent)
-        printf("Successfully registered dll %s\n", strDll);
+        printf("Successfully registered DLL %s\n", strDll);
 
     if(DllHandle)
         FreeLibrary(DllHandle);
@@ -136,12 +136,12 @@
     if(FAILED(hr))
     {
         if(!Silent)
-            printf("Failed to unregister dll %s\n", strDll);
+            printf("Failed to unregister DLL %s\n", strDll);
 
         return -1;
     }
     if(!Silent)
-        printf("Successfully unregistered dll %s\n", strDll);
+        printf("Successfully unregistered DLL %s\n", strDll);
 
     if(DllHandle)
         FreeLibrary(DllHandle);
@@ -159,12 +159,12 @@
     if(FAILED(hr))
     {
         if(!Silent)
-            printf("Failed to %s dll %s\n", install ? "install" : "uninstall",
+            printf("Failed to %s DLL %s\n", install ? "install" : "uninstall",
                    strDll);
         return -1;
     }
     if(!Silent)
-        printf("Successfully %s dll %s\n",  install ? "installed" : "uninstalled",
+        printf("Successfully %s DLL %s\n",  install ? "installed" : "uninstalled",
                strDll);
 
     if(DllHandle)


More information about the wine-patches mailing list