services: Remove unneeded shadow variable.
This commit is contained in:
parent
6677982728
commit
e7f414556e
|
@ -82,8 +82,7 @@ DWORD load_reg_string(HKEY hKey, LPCWSTR szValue, BOOL bExpand, LPWSTR *output)
|
||||||
if (type == REG_EXPAND_SZ)
|
if (type == REG_EXPAND_SZ)
|
||||||
{
|
{
|
||||||
LPWSTR str;
|
LPWSTR str;
|
||||||
DWORD size = ExpandEnvironmentStringsW(buf, NULL, 0);
|
if (!(size = ExpandEnvironmentStringsW(buf, NULL, 0)))
|
||||||
if (size == 0)
|
|
||||||
{
|
{
|
||||||
err = GetLastError();
|
err = GetLastError();
|
||||||
goto failed;
|
goto failed;
|
||||||
|
|
Loading…
Reference in New Issue