diff --git a/dlls/user/resource.c b/dlls/user/resource.c index d8469155eb5..8a333ef861d 100644 --- a/dlls/user/resource.c +++ b/dlls/user/resource.c @@ -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;