setupapi: Make sure the class name is always set on success in SetupDiGetINFClassW (Valgrind).

Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2020-04-17 20:20:12 +02:00 committed by Alexandre Julliard
parent b08974900f
commit dcc6a143e9
1 changed files with 5 additions and 1 deletions

View File

@ -4188,7 +4188,11 @@ BOOL WINAPI SetupDiGetINFClassW(PCWSTR inf, LPGUID class_guid, PWSTR class_name,
have_name = 0 < dret;
if (dret >= MAX_PATH -1) FIXME("buffer might be too small\n");
if (have_guid && !have_name) FIXME("class name lookup via guid not implemented\n");
if (have_guid && !have_name)
{
class_name[0] = '\0';
FIXME("class name lookup via guid not implemented\n");
}
if (have_name)
{