Sergey Isakov : tapi32: Simplify the logic in an if condition.
Module: wine Branch: master Commit: 3557870302b8256bffc67d578d4c36b7cfefb349 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3557870302b8256bffc67d578d... Author: Sergey Isakov <isakov-sl(a)bk.ru> Date: Fri Nov 27 07:12:30 2015 +0300 tapi32: Simplify the logic in an if condition. Signed-off-by: Sergey Isakov <isakov-sl(a)bk.ru> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 9e68a5c..0d707db 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) {
participants (1)
-
Alexandre Julliard