ddraw: Fixed device name.

This commit is contained in:
Jens Albretsen 2008-04-20 01:01:50 +02:00 committed by Alexandre Julliard
parent c0a3ac5006
commit cf38e4c930
1 changed files with 3 additions and 1 deletions

View File

@ -310,7 +310,7 @@ IDirect3DImpl_3_EnumDevices(IDirect3D3 *iface,
/* Some games (Motoracer 2 demo) have the bad idea to modify the device name string.
Let's put the string in a sufficiently sized array in writable memory. */
char device_name[50];
strcpy(device_name,"direct3d");
strcpy(device_name,"Direct3D HEL");
TRACE("(%p)->(%p,%p)\n", This, Callback, Context);
EnterCriticalSection(&ddraw_cs);
@ -359,6 +359,8 @@ IDirect3DImpl_3_EnumDevices(IDirect3D3 *iface,
}
}
strcpy(device_name,"Direct3D HAL");
TRACE("(%p) Enumerating HAL Direct3D device\n", This);
d1 = dref;
d2 = dref;