tapi32: Simplify the logic in an if condition.
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
88a96478c3
commit
3557870302
|
@ -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','\\',
|
'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};
|
'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);
|
valsize = sizeof( DWORD);
|
||||||
if(!RegQueryValueExW(hkey, currentidW, 0, &type, (LPBYTE) &currid, &valsize) &&
|
if(!RegQueryValueExW(hkey, currentidW, 0, &type, (LPBYTE) &currid, &valsize) &&
|
||||||
type == REG_DWORD) {
|
type == REG_DWORD) {
|
||||||
|
|
Loading…
Reference in New Issue