winecfg: Display message box to alert users more reliably that winecfg is unfinished

Mike Hearn mike at navi.cx
Sat Sep 25 11:33:42 CDT 2004


Display message box to alert users more reliably that winecfg is
unfinished


-------------- next part --------------
--- programs/winecfg.working/main.c	2004-08-23 17:57:18.952225112 +0100
+++ programs/winecfg/main.c	2004-08-23 17:56:21.869902944 +0100
@@ -205,8 +205,13 @@
 {
 
     /* Until winecfg is fully functional, warn users that it is incomplete and doesn't do anything */
-    WINE_FIXME("The winecfg tool is not yet complete, and does not actually alter your configuration.\n");
-    WINE_FIXME("If you want to alter the way Wine works, look in the ~/.wine/config file for more information.\n");
+    if (!getenv("WINECFG_NOWARN")) {
+        WINE_FIXME("The winecfg tool is not yet complete, and does not actually alter your configuration.\n");
+        WINE_FIXME("If you want to alter the way Wine works, look in the ~/.wine/config file for more information.\n");
+        MessageBoxA(NULL, "The winecfg tool is not yet complete, and does not actually alter your configuration\n\n"
+                    "If you want to alter the way Wine works, look in the ~/.wine/config file for more information.",
+                    "", MB_OK | MB_ICONEXCLAMATION);
+    }
 
     if (initialize() != 0) {
 	WINE_ERR("initialization failed, aborting\n");
@@ -215,7 +220,7 @@
 
     /* is the user running as root? */
     if(getuid() == 0)
-        MessageBox(NULL, "It is not advisable to run wine as root.  Doing so may compromise the security of your computer.  Please run wine as a normal user.", "Warning", MB_OK);
+        MessageBox(NULL, "It is not advisable to run wine as root.  Doing so may compromise the security of your computer.  Please run wine as a normal user.", "", MB_OK);
     
     /*
      * The next 3 lines should be all that is needed


More information about the wine-patches mailing list