Commit f807666d authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

d3dx9_36: Fix initialization of header in save_dds_surface_to_memory. save_dds_surface_to_memory.

parent fad0bea3
...@@ -473,7 +473,7 @@ static HRESULT save_dds_surface_to_memory(ID3DXBuffer **dst_buffer, IDirect3DSur ...@@ -473,7 +473,7 @@ static HRESULT save_dds_surface_to_memory(ID3DXBuffer **dst_buffer, IDirect3DSur
header = ID3DXBuffer_GetBufferPointer(buffer); header = ID3DXBuffer_GetBufferPointer(buffer);
pixels = (BYTE *)(header + 1); pixels = (BYTE *)(header + 1);
memset(header, 0, sizeof(header)); memset(header, 0, sizeof(*header));
header->signature = MAKEFOURCC('D','D','S',' '); header->signature = MAKEFOURCC('D','D','S',' ');
header->size = sizeof(*header); header->size = sizeof(*header);
header->flags = DDS_CAPS | DDS_HEIGHT | DDS_WIDTH | DDS_PITCH | DDS_PIXELFORMAT | DDS_MIPMAPCOUNT; header->flags = DDS_CAPS | DDS_HEIGHT | DDS_WIDTH | DDS_PITCH | DDS_PIXELFORMAT | DDS_MIPMAPCOUNT;
......
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