winejoystick.drv: Use CP_UNIXCP instead of CP_ACP when converting a string that comes from the OS.
This commit is contained in:
parent
944f22db80
commit
466b682dc6
|
@ -221,7 +221,7 @@ static const WCHAR ini[] = {'W','i','n','e',' ','J','o','y','s','t','i','c','k',
|
|||
driverVersion, identString, nrOfAxes, nrOfButtons);
|
||||
lpCaps->wMid = MM_MICROSOFT;
|
||||
lpCaps->wPid = MM_PC_JOYSTICK;
|
||||
MultiByteToWideChar(CP_ACP, 0, identString, -1, lpCaps->szPname, MAXPNAMELEN);
|
||||
MultiByteToWideChar(CP_UNIXCP, 0, identString, -1, lpCaps->szPname, MAXPNAMELEN);
|
||||
lpCaps->szPname[MAXPNAMELEN-1] = '\0';
|
||||
lpCaps->wXmin = 0;
|
||||
lpCaps->wXmax = 0xFFFF;
|
||||
|
|
Loading…
Reference in New Issue