LoadStringA inserts terminating null in the buffer when the string
resource is an empty string or when it can not be found.
This commit is contained in:
parent
56af064e01
commit
e8b3afc2c1
|
@ -417,6 +417,7 @@ INT WINAPI LoadStringA( HINSTANCE instance, UINT resource_id,
|
|||
buffer[retval] = 0;
|
||||
TRACE("%s loaded !\n", debugstr_a(buffer));
|
||||
}
|
||||
else buffer[0] = 0; /* no check of buflen here */
|
||||
HeapFree( GetProcessHeap(), 0, wbuf );
|
||||
|
||||
return retval;
|
||||
|
|
Loading…
Reference in New Issue