winejoystick.drv: Use CP_UNIXCP instead of CP_ACP when converting a string that comes from the OS.

This commit is contained in:
Rob Shearman 2009-02-18 20:32:27 +00:00 committed by Alexandre Julliard
parent 944f22db80
commit 466b682dc6
1 changed files with 1 additions and 1 deletions

View File

@ -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;