mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 14:46:34 +00:00
sync browseui_winetest with wine 1.1.13
svn path=/trunk/; revision=38845
This commit is contained in:
parent
aecfced223
commit
be6f9a9db3
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@
|
||||||
static LPWSTR strdup_AtoW(LPCSTR str)
|
static LPWSTR strdup_AtoW(LPCSTR str)
|
||||||
{
|
{
|
||||||
int size = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
|
int size = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
|
||||||
LPWSTR wstr = (LPWSTR)CoTaskMemAlloc((size + 1)*sizeof(WCHAR));
|
LPWSTR wstr = CoTaskMemAlloc((size + 1)*sizeof(WCHAR));
|
||||||
MultiByteToWideChar(CP_ACP, 0, str, -1, wstr, size+1);
|
MultiByteToWideChar(CP_ACP, 0, str, -1, wstr, size+1);
|
||||||
return wstr;
|
return wstr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue