ddraw: Reserve extra space in the reference device description buffer.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56367
This commit is contained in:
Andrew Nguyen 2024-03-10 21:38:51 -05:00 committed by Alexandre Julliard
parent e42afe7daf
commit 2c8d4f5abd

View file

@ -3868,7 +3868,10 @@ static HRESULT WINAPI d3d3_EnumDevices(IDirect3D3 *iface, LPD3DENUMDEVICESCALLBA
* never have POW2 unset in d3d7 on windows. */
if (ddraw->d3dversion != 1)
{
static CHAR reference_description[] = "RGB Direct3D emulation";
/* Tomb Raider 3 overwrites the reference device description buffer
* with its own custom string. Reserve some extra space in the array
* to avoid a buffer overrun. */
static CHAR reference_description[64] = "RGB Direct3D emulation";
TRACE("Enumerating WineD3D D3DDevice interface.\n");
hal_desc = device_desc1;