ddraw: Write-strings warnings fix

Andrew Talbot Andrew.Talbot at talbotville.com
Fri Aug 18 13:06:07 CDT 2006


Changelog:
    ddraw: Write-strings warnings fix.

diff -urN a/dlls/ddraw/main.c b/dlls/ddraw/main.c
--- a/dlls/ddraw/main.c	2006-08-15 21:30:47.000000000 +0100
+++ b/dlls/ddraw/main.c	2006-08-18 19:04:17.000000000 +0100
@@ -390,7 +390,10 @@
     /* We only have one driver */
     __TRY
     {
-        stop = !Callback(NULL, "DirectDraw HAL", "display", Context);
+        static CHAR driver_desc[] = "DirectDraw HAL",
+        driver_name[] = "display";
+
+        stop = !Callback(NULL, driver_desc, driver_name, Context);
     }
     __EXCEPT_PAGE_FAULT
     {
@@ -422,8 +425,11 @@
     /* We only have one driver by now */
     __TRY
     {
+        static CHAR driver_desc[] = "DirectDraw HAL",
+        driver_name[] = "display";
+
         /* QuickTime expects the description "DirectDraw HAL" */
-        stop = !Callback(NULL, "DirectDraw HAL", "display", Context, 0);
+        stop = !Callback(NULL, driver_desc, driver_name, Context, 0);
     }
     __EXCEPT_PAGE_FAULT
     {



More information about the wine-patches mailing list