mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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:
parent
e42afe7daf
commit
2c8d4f5abd
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue