From 3557870302b8256bffc67d578d4c36b7cfefb349 Mon Sep 17 00:00:00 2001 From: Sergey Isakov Date: Fri, 27 Nov 2015 07:12:30 +0300 Subject: [PATCH] tapi32: Simplify the logic in an if condition. Signed-off-by: Sergey Isakov Signed-off-by: Alexandre Julliard --- dlls/tapi32/assisted.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/tapi32/assisted.c b/dlls/tapi32/assisted.c index 9e68a5c905f..0d707dbc749 100644 --- a/dlls/tapi32/assisted.c +++ b/dlls/tapi32/assisted.c @@ -60,7 +60,7 @@ DWORD WINAPI tapiGetLocationInfoW(LPWSTR countrycode, LPWSTR citycode) 'C','u','r','r','e','n','t','V','e','r','s','i','o','n','\\', 'T','e','l','e','p','h','o','n','y','\\','L','o','c','a','t','i','o','n','s',0}; - if(!RegOpenKeyW(HKEY_LOCAL_MACHINE, locations_keyW, &hkey) != ERROR_SUCCESS) { + if(RegOpenKeyW(HKEY_LOCAL_MACHINE, locations_keyW, &hkey) == ERROR_SUCCESS) { valsize = sizeof( DWORD); if(!RegQueryValueExW(hkey, currentidW, 0, &type, (LPBYTE) &currid, &valsize) && type == REG_DWORD) {