setupapi: Make sure machine name is non-empty before failing

Dmitry Timoshkov dmitry at baikal.ru
Thu Jun 9 12:49:28 CDT 2011


Juan Lang <juan.lang at gmail.com> wrote:

> +static const WCHAR emptyW[] = { 0 };
...
> -    if (MachineName != NULL)
> +    if (MachineName != NULL && strcmpW(MachineName, emptyW))

What's wrong with 'if (MachineName && *MachineName)' ?

-- 
Dmitry.



More information about the wine-devel mailing list