Module: wine Branch: master Commit: f63f0d3b2bebe8bc4373cbce9c6d64d56f3e745e URL: https://gitlab.winehq.org/wine/wine/-/commit/f63f0d3b2bebe8bc4373cbce9c6d64d...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Tue Nov 15 07:02:20 2022 +0300
d3dx9: Add missing path conversion call in D3DXLoadVolumeFromFileA().
---
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);