advpack: Fixed a couple of typos in Unicode conversion.

This commit is contained in:
Alexandre Julliard 2006-04-13 12:10:56 +02:00
parent 4d574a41b5
commit 5c2a980c86
1 changed files with 2 additions and 2 deletions

View File

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