Small fix in load_string() function.
This commit is contained in:
parent
5be76ac282
commit
bdcd0abcc5
@ -286,7 +286,7 @@ static wchar_t *load_string(const HINSTANCE hinstance, const UINT id)
|
||||
{
|
||||
if (buffer = (wchar_t*) malloc(sizeof(wchar_t) * (str_len + 1U)))
|
||||
{
|
||||
if(LoadStringW(hinstance, id, buffer, str_len) > 0)
|
||||
if(LoadStringW(hinstance, id, buffer, str_len + 1U) > 0)
|
||||
{
|
||||
return wcstrim(buffer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user