programs/start: don't exit with an error if asked to show the license

Austin English austinenglish at gmail.com
Wed Jun 24 21:15:31 CDT 2009


If the user specifically requested the license, there's no reason to
give an error. Now if they called start with no arguments, that's
understandable.

-- 
-Austin
-------------- next part --------------
diff --git a/programs/start/start.c b/programs/start/start.c
index e58d4c0..e7e42ac 100644
--- a/programs/start/start.c
+++ b/programs/start/start.c
@@ -122,7 +122,12 @@ static void usage(void)
 
 static void license(void)
 {
-	fatal_string(STRING_LICENSE);
+    WCHAR msg[2048];
+	if (!LoadStringW(GetModuleHandleW(NULL), STRING_LICENSE,
+					msg, sizeof(msg)/sizeof(WCHAR)))
+		WINE_ERR("Loading license failed, error %d\n", GetLastError());
+	output(msg);
+    ExitProcess(0);
 }
 
 static WCHAR *build_args( int argc, WCHAR **argvW )


More information about the wine-patches mailing list