services: Remove unneeded shadow variable.

This commit is contained in:
André Hentschel 2012-04-18 00:11:37 +02:00 committed by Alexandre Julliard
parent 6677982728
commit e7f414556e
1 changed files with 1 additions and 2 deletions

View File

@ -82,8 +82,7 @@ DWORD load_reg_string(HKEY hKey, LPCWSTR szValue, BOOL bExpand, LPWSTR *output)
if (type == REG_EXPAND_SZ)
{
LPWSTR str;
DWORD size = ExpandEnvironmentStringsW(buf, NULL, 0);
if (size == 0)
if (!(size = ExpandEnvironmentStringsW(buf, NULL, 0)))
{
err = GetLastError();
goto failed;