ddraw: Return a DLL in szDriver for GetDeviceIdentifier.

This commit is contained in:
Erich E. Hoover 2014-02-10 21:27:33 -07:00 committed by Alexandre Julliard
parent 963c26b36f
commit 2cb3aeb7b9
2 changed files with 3 additions and 1 deletions

View file

@ -35,7 +35,7 @@ static BOOL restore_mode;
/* Device identifier. Don't relay it to WineD3D */
static const DDDEVICEIDENTIFIER2 deviceidentifier =
{
"display",
"vga.dll", /* default 2D driver */
"DirectDraw HAL",
{ { 0x00010001, 0x00010001 } },
0, 0, 0, 0,

View file

@ -988,6 +988,8 @@ static void testddraw7(void)
if (hr==DD_OK)
{
/* szDriver contains the name of the driver DLL */
ok(strstr(pdddi2->szDriver, ".dll")!=NULL, "szDriver does not contain DLL name\n");
/* check how strings are copied into the structure */
ok(pdddi2->szDriver[MAX_DDDEVICEID_STRING - 1]==0, "szDriver not cleared\n");
ok(pdddi2->szDescription[MAX_DDDEVICEID_STRING - 1]==0, "szDescription not cleared\n");