Jens Albretsen : ddraw: Fixed device name.
Alexandre Julliard
julliard at winehq.org
Mon Apr 28 08:01:41 CDT 2008
Module: wine
Branch: master
Commit: cf38e4c9304286f57c1cab31c760e49c033a149c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cf38e4c9304286f57c1cab31c760e49c033a149c
Author: Jens Albretsen <jens at albretsen.dk>
Date: Sun Apr 20 01:01:50 2008 +0200
ddraw: Fixed device name.
---
dlls/ddraw/direct3d.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/direct3d.c b/dlls/ddraw/direct3d.c
index 0e026fd..3ccf8e4 100644
--- a/dlls/ddraw/direct3d.c
+++ b/dlls/ddraw/direct3d.c
@@ -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;
More information about the wine-cvs
mailing list