Commit 2c8d4f5a authored by Andrew Nguyen's avatar Andrew Nguyen Committed by Alexandre Julliard

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

parent e42afe7d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment