Andrew Talbot : ddraw: Write-strings warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 23 16:36:15 CDT 2006


Module: wine
Branch: master
Commit: 04a0f74b6335af482c33b63dae66b92a19a2b04b
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=04a0f74b6335af482c33b63dae66b92a19a2b04b

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Fri Aug 18 19:06:07 2006 +0100

ddraw: Write-strings warnings fix.

---

 dlls/ddraw/main.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/ddraw/main.c b/dlls/ddraw/main.c
index 5c32ab6..8aab95c 100644
--- a/dlls/ddraw/main.c
+++ b/dlls/ddraw/main.c
@@ -390,7 +390,10 @@ DirectDrawEnumerateA(LPDDENUMCALLBACKA C
     /* 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 @@ DirectDrawEnumerateExA(LPDDENUMCALLBACKE
     /* 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-cvs mailing list