From: Nikolay Sivov nsivov@codeweavers.com
--- dlls/d3dx9_36/volume.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/d3dx9_36/volume.c b/dlls/d3dx9_36/volume.c index d7d52b72626..c0357e0520e 100644 --- a/dlls/d3dx9_36/volume.c +++ b/dlls/d3dx9_36/volume.c @@ -38,6 +38,7 @@ HRESULT WINAPI D3DXLoadVolumeFromFileA(IDirect3DVolume9 *dst_volume, const PALET length = MultiByteToWideChar(CP_ACP, 0, filename, -1, NULL, 0); filenameW = HeapAlloc(GetProcessHeap(), 0, length * sizeof(*filenameW)); if (!filenameW) return E_OUTOFMEMORY; + MultiByteToWideChar(CP_ACP, 0, filename, -1, filenameW, length);
hr = D3DXLoadVolumeFromFileW(dst_volume, dst_palette, dst_box, filenameW, src_box, filter, color_key, info);
This merge request was approved by Matteo Bruni.
Nice catch! I guess this shows how much that function is tested or used by applications...