ddraw: Write-strings warnings fix.

This commit is contained in:
Andrew Talbot 2006-08-18 19:06:07 +01:00 committed by Alexandre Julliard
parent 4e4740346d
commit 04a0f74b63

View File

@ -390,7 +390,10 @@ DirectDrawEnumerateA(LPDDENUMCALLBACKA Callback,
/* We only have one driver */ /* We only have one driver */
__TRY __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 __EXCEPT_PAGE_FAULT
{ {
@ -422,8 +425,11 @@ DirectDrawEnumerateExA(LPDDENUMCALLBACKEXA Callback,
/* We only have one driver by now */ /* We only have one driver by now */
__TRY __TRY
{ {
static CHAR driver_desc[] = "DirectDraw HAL",
driver_name[] = "display";
/* QuickTime expects the description "DirectDraw HAL" */ /* 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 __EXCEPT_PAGE_FAULT
{ {