From f807666d2b38e39d4df8ad2725c3ce6ecf15f6f5 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Tue, 25 Sep 2012 19:38:32 -0400 Subject: [PATCH] d3dx9_36: Fix initialization of header in save_dds_surface_to_memory. save_dds_surface_to_memory. --- dlls/d3dx9_36/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/d3dx9_36/surface.c b/dlls/d3dx9_36/surface.c index ab6a9f6852..daa6cfe99f 100644 --- a/dlls/d3dx9_36/surface.c +++ b/dlls/d3dx9_36/surface.c @@ -473,7 +473,7 @@ static HRESULT save_dds_surface_to_memory(ID3DXBuffer **dst_buffer, IDirect3DSur header = ID3DXBuffer_GetBufferPointer(buffer); pixels = (BYTE *)(header + 1); - memset(header, 0, sizeof(header)); + memset(header, 0, sizeof(*header)); header->signature = MAKEFOURCC('D','D','S',' '); header->size = sizeof(*header); header->flags = DDS_CAPS | DDS_HEIGHT | DDS_WIDTH | DDS_PITCH | DDS_PIXELFORMAT | DDS_MIPMAPCOUNT; -- 2.32.0.93.g670b81a890