advapi32: Assign a default value (clang)

Hans Leidekker hans at codeweavers.com
Fri Mar 9 03:01:35 CST 2012


On Fri, 2012-03-09 at 19:54 +1100, Alistair Leslie-Hughes wrote:
> @@ -755,7 +755,7 @@ SC_HANDLE WINAPI OpenSCManagerA( LPCSTR lpMachineName, LPCSTR lpDatabaseName,
>  SC_HANDLE WINAPI OpenSCManagerW( LPCWSTR lpMachineName, LPCWSTR lpDatabaseName,
>                                   DWORD dwDesiredAccess )
>  {
> -    SC_HANDLE handle;
> +    SC_HANDLE handle = INVALID_HANDLE_VALUE;

These functions return NULL on failure.





More information about the wine-devel mailing list