Improve error reporting in winemenubuilder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Changelog:


Francois Gouget <fgouget@xxxxxxxxxxxxxxx>

* programs/winemenubuilder/winemenubuilder.c

Improve error reporting.

--
Francois Gouget
fgouget@xxxxxxxxxxxxxxx

Index: programs/winemenubuilder/winemenubuilder.c
===================================================================
RCS file: /home/cvs/wine/programs/winemenubuilder/winemenubuilder.c,v
retrieving revision 1.9
diff -u -r1.9 winemenubuilder.c
--- programs/winemenubuilder/winemenubuilder.c	5 Jan 2004 23:42:09 -0000	1.9
+++ programs/winemenubuilder/winemenubuilder.c	5 Jan 2004 23:58:56 -0000
@@ -581,6 +581,7 @@
 {
     int pos = 0;
     const char *argv[20];
+    int retcode;
 
     WINE_TRACE( "linker app='%s' link='%s' mode=%s "
         "path='%s' args='%s' icon='%s' workdir='%s' descr='%s'\n",
@@ -615,7 +616,10 @@
     }
     argv[pos] = NULL;
 
-    return spawnvp( _P_WAIT, linker, argv );
+    retcode=spawnvp( _P_WAIT, linker, argv );
+    if (retcode!=0)
+        WINE_ERR("%s returned %d\n",linker,retcode);
+    return retcode;
 }
 
 /* write the name of the ShellLinker into the buffer provided */
@@ -854,7 +858,10 @@
 
     r = CoInitialize( NULL );
     if( FAILED( r ) )
+    {
+        WINE_ERR("CoInitialize failed\n");
         return 1;
+    }
 
     r = CoCreateInstance( &CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER,
                       &IID_IShellLink, (LPVOID *) &sl );

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux