Gerald Pfeifer : netapi32: Remove two conditions which always hold true.
Alexandre Julliard
julliard at winehq.org
Tue Sep 22 13:56:48 CDT 2009
Module: wine
Branch: master
Commit: 4dedab61524d2568201dd700ae911c547c2edc7b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4dedab61524d2568201dd700ae911c547c2edc7b
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Sat Sep 19 21:21:39 2009 +0200
netapi32: Remove two conditions which always hold true.
---
dlls/netapi32/nbt.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/netapi32/nbt.c b/dlls/netapi32/nbt.c
index 0bddd94..8c76b6e 100644
--- a/dlls/netapi32/nbt.c
+++ b/dlls/netapi32/nbt.c
@@ -1478,8 +1478,7 @@ void NetBTInit(void)
gBCastQueries = dword;
size = sizeof(dword);
if (RegQueryValueExW(hKey, BcastNameQueryTimeoutW, NULL, NULL,
- (LPBYTE)&dword, &size) == ERROR_SUCCESS && dword >= MIN_QUERY_TIMEOUT
- && dword <= MAX_QUERY_TIMEOUT)
+ (LPBYTE)&dword, &size) == ERROR_SUCCESS && dword >= MIN_QUERY_TIMEOUT)
gBCastQueryTimeout = dword;
size = sizeof(dword);
if (RegQueryValueExW(hKey, NameSrvQueryCountW, NULL, NULL,
@@ -1488,8 +1487,7 @@ void NetBTInit(void)
gWINSQueries = dword;
size = sizeof(dword);
if (RegQueryValueExW(hKey, NameSrvQueryTimeoutW, NULL, NULL,
- (LPBYTE)&dword, &size) == ERROR_SUCCESS && dword >= MIN_QUERY_TIMEOUT
- && dword <= MAX_QUERY_TIMEOUT)
+ (LPBYTE)&dword, &size) == ERROR_SUCCESS && dword >= MIN_QUERY_TIMEOUT)
gWINSQueryTimeout = dword;
size = sizeof(gScopeID) - 1;
if (RegQueryValueExW(hKey, ScopeIDW, NULL, NULL, (LPBYTE)gScopeID + 1, &size)
More information about the wine-cvs
mailing list