advpack: Fixed a couple of typos in Unicode conversion.
This commit is contained in:
parent
4d574a41b5
commit
5c2a980c86
|
@ -102,13 +102,13 @@ static void strentry_atow(STRENTRYA *aentry, STRENTRYW *wentry)
|
||||||
DWORD name_len, val_len;
|
DWORD name_len, val_len;
|
||||||
|
|
||||||
name_len = MultiByteToWideChar(CP_ACP, 0, aentry->pszName, -1, NULL, 0);
|
name_len = MultiByteToWideChar(CP_ACP, 0, aentry->pszName, -1, NULL, 0);
|
||||||
val_len = MultiByteToWideChar(CP_ACP, 0, aentry->pszName, -1, NULL, 0);
|
val_len = MultiByteToWideChar(CP_ACP, 0, aentry->pszValue, -1, NULL, 0);
|
||||||
|
|
||||||
wentry->pszName = HeapAlloc(GetProcessHeap(), 0, name_len * sizeof(WCHAR));
|
wentry->pszName = HeapAlloc(GetProcessHeap(), 0, name_len * sizeof(WCHAR));
|
||||||
wentry->pszValue = HeapAlloc(GetProcessHeap(), 0, val_len * sizeof(WCHAR));
|
wentry->pszValue = HeapAlloc(GetProcessHeap(), 0, val_len * sizeof(WCHAR));
|
||||||
|
|
||||||
MultiByteToWideChar(CP_ACP, 0, aentry->pszName, -1, wentry->pszName, name_len);
|
MultiByteToWideChar(CP_ACP, 0, aentry->pszName, -1, wentry->pszName, name_len);
|
||||||
MultiByteToWideChar(CP_ACP, 0, aentry->pszName, -1, wentry->pszValue, val_len);
|
MultiByteToWideChar(CP_ACP, 0, aentry->pszValue, -1, wentry->pszValue, val_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
static STRTABLEW *strtable_atow(const STRTABLEA *atable)
|
static STRTABLEW *strtable_atow(const STRTABLEA *atable)
|
||||||
|
|
Loading…
Reference in New Issue