setupapi: Correctly handle an empty filename in SetupGetSourceFileLocationA.

This commit is contained in:
Hans Leidekker 2007-05-18 11:38:53 +02:00 committed by Alexandre Julliard
parent d060160b7a
commit 108288ec3a

View File

@ -320,7 +320,7 @@ BOOL WINAPI SetupGetSourceFileLocationA( HINF hinf, PINFCONTEXT context, PCSTR f
TRACE("%p, %p, %s, %p, %p, 0x%08x, %p\n", hinf, context, debugstr_a(filename), source_id,
buffer, buffer_size, required_size);
if (filename && !(filenameW = strdupAtoW( filename )))
if (filename && *filename && !(filenameW = strdupAtoW( filename )))
return FALSE;
if (!SetupGetSourceFileLocationW( hinf, context, filenameW, source_id, NULL, 0, &required ))