mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
Remove quotation marks from the scheme data string to make main.cpl work on WinXP.
svn path=/trunk/; revision=26527
This commit is contained in:
parent
67e078d353
commit
0cb9c0bdde
1 changed files with 31 additions and 4 deletions
|
@ -462,10 +462,23 @@ EnumerateCursorSchemes(HWND hwndDlg)
|
|||
|
||||
if (_tcslen(szValueData) > 0)
|
||||
{
|
||||
LPTSTR copy = _tcsdup(szValueData);
|
||||
LPTSTR lpCopy, lpStart;
|
||||
|
||||
/* Remove quotation marks */
|
||||
if (szValueData[0] == _T('"'))
|
||||
{
|
||||
lpStart = szValueData + 1;
|
||||
szValueData[_tcslen(szValueData) - 1] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
lpStart = szValueData;
|
||||
}
|
||||
|
||||
lpCopy = _tcsdup(lpStart);
|
||||
|
||||
lResult = SendMessage(hDlgCtrl, CB_ADDSTRING, (WPARAM)0, (LPARAM)szValueName);
|
||||
SendMessage(hDlgCtrl, CB_SETITEMDATA, (WPARAM)lResult, (LPARAM)copy);
|
||||
SendMessage(hDlgCtrl, CB_SETITEMDATA, (WPARAM)lResult, (LPARAM)lpCopy);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -491,12 +504,26 @@ EnumerateCursorSchemes(HWND hwndDlg)
|
|||
|
||||
if (_tcslen(szValueData) > 0)
|
||||
{
|
||||
LPTSTR copy = _tcsdup(szValueData);
|
||||
LPTSTR lpCopy, lpStart;
|
||||
|
||||
/* Remove quotation marks */
|
||||
if (szValueData[0] == _T('"'))
|
||||
{
|
||||
lpStart = szValueData + 1;
|
||||
szValueData[_tcslen(szValueData) - 1] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
lpStart = szValueData;
|
||||
}
|
||||
|
||||
lpCopy = _tcsdup(lpStart);
|
||||
|
||||
_tcscat(szValueName, TEXT(" "));
|
||||
_tcscat(szValueName, szSystemScheme);
|
||||
|
||||
lResult = SendMessage(hDlgCtrl, CB_ADDSTRING, (WPARAM)0, (LPARAM)szValueName);
|
||||
SendMessage(hDlgCtrl, CB_SETITEMDATA, (WPARAM)lResult, (LPARAM)copy);
|
||||
SendMessage(hDlgCtrl, CB_SETITEMDATA, (WPARAM)lResult, (LPARAM)lpCopy);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue