From e7f414556e1f2e4c22b8cc06c004fb7bb7817f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Wed, 18 Apr 2012 00:11:37 +0200 Subject: [PATCH] services: Remove unneeded shadow variable. --- programs/services/utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/programs/services/utils.c b/programs/services/utils.c index 920b6daf6ac..aead38aeaa0 100644 --- a/programs/services/utils.c +++ b/programs/services/utils.c @@ -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;