From 04a0f74b6335af482c33b63dae66b92a19a2b04b Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Fri, 18 Aug 2006 19:06:07 +0100 Subject: [PATCH] ddraw: Write-strings warnings fix. --- dlls/ddraw/main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/ddraw/main.c b/dlls/ddraw/main.c index 5c32ab60bc9..8aab95c99e5 100644 --- a/dlls/ddraw/main.c +++ b/dlls/ddraw/main.c @@ -390,7 +390,10 @@ DirectDrawEnumerateA(LPDDENUMCALLBACKA Callback, /* 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(LPDDENUMCALLBACKEXA Callback, /* 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 {