d3dx9_36: Fix initialization of header in save_dds_surface_to_memory. save_dds_surface_to_memory.

This commit is contained in:
Gerald Pfeifer 2012-09-25 19:38:32 -04:00 committed by Alexandre Julliard
parent fad0bea304
commit f807666d2b
1 changed files with 1 additions and 1 deletions

View File

@ -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;