fix
This commit is contained in:
parent
f06ab092cc
commit
77947120af
|
@ -474,7 +474,7 @@ const wchar_t* GetWC(const char* c)
|
||||||
{
|
{
|
||||||
const size_t cSize = strlen(c) + 1;
|
const size_t cSize = strlen(c) + 1;
|
||||||
|
|
||||||
wchar_t* wc=(wchar_t*)GlobalAlloc(GMEM_FIXED | GMEM_ZEROINIT, sizeof(wchar_t) * cSize));
|
wchar_t* wc=(wchar_t*)GlobalAlloc(GMEM_FIXED | GMEM_ZEROINIT, sizeof(wchar_t) * cSize);
|
||||||
mbstowcs(wc, c, cSize);
|
mbstowcs(wc, c, cSize);
|
||||||
|
|
||||||
return wc;
|
return wc;
|
||||||
|
|
Loading…
Reference in New Issue