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:
parent
b08974900f
commit
dcc6a143e9
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue