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:
Rein Klazes 2000-10-15 00:21:48 +00:00 committed by Alexandre Julliard
parent 56af064e01
commit e8b3afc2c1

View file

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