tapi32: Simplify the logic in an if condition.
authorSergey Isakov <isakov-sl@bk.ru>
Fri, 27 Nov 2015 04:12:30 +0000 (07:12 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 27 Nov 2015 11:53:31 +0000 (20:53 +0900)
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/tapi32/assisted.c

index 9e68a5c905fcf1244ca7772b9ff366b1a4c56494..0d707dbc749f8c375db93bedac26264bef8acfc2 100644 (file)
@@ -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) {