wined3d: Fix stack buffer overrun in wined3d_debug_resource_access().
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
27ef844bd1
commit
e1d4edab4e
|
@ -4150,7 +4150,7 @@ const char *debug_d3ddevicetype(enum wined3d_device_type device_type)
|
|||
|
||||
const char *wined3d_debug_resource_access(DWORD access)
|
||||
{
|
||||
char buf[91];
|
||||
char buf[125];
|
||||
|
||||
buf[0] = '\0';
|
||||
#define ACCESS_TO_STR(x) if (access & x) { strcat(buf, " | "#x); access &= ~x; }
|
||||
|
|
Loading…
Reference in New Issue