[PATCH 3/4] dinput: Convert wide action format back to ansi in ConfigureDevices.

Rémi Bernon rbernon at codeweavers.com
Mon Dec 20 10:47:17 CST 2021


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52198
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 dlls/dinput/ansi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/dinput/ansi.c b/dlls/dinput/ansi.c
index 10b96a1e059..b7ec426b2e0 100644
--- a/dlls/dinput/ansi.c
+++ b/dlls/dinput/ansi.c
@@ -840,6 +840,7 @@ static HRESULT WINAPI dinput8_a_ConfigureDevices( IDirectInput8A *iface_a, LPDIC
         params_w.lprgFormats = &format_w;
 
         if (SUCCEEDED(hr)) hr = IDirectInput8_ConfigureDevices( iface_w, callback, &params_w, flags, ref );
+        if (SUCCEEDED(hr)) diactionformat_wtoa( &format_w, format_a );
 
         if (!format_w.hInstString)
         {
-- 
2.34.0




More information about the wine-devel mailing list