This commit is contained in:
love-code-yeyixiao 2024-06-23 15:27:10 +08:00
parent f06ab092cc
commit 77947120af
1 changed files with 1 additions and 1 deletions

View File

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