[PATCH] advapi32: LookupAccountNameW removed redundant NULL check (Coverity)
Marcus Meissner
marcus at jet.franken.de
Mon Feb 9 01:52:42 CST 2009
Hi,
CID 813 reopened, because the same check happened in the same function
again. ... So remove the redundant NULL check.
Ciao, Marcus
---
dlls/advapi32/security.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c
index 38ca284..4153d93 100644
--- a/dlls/advapi32/security.c
+++ b/dlls/advapi32/security.c
@@ -2699,7 +2699,7 @@ BOOL WINAPI LookupAccountNameW( LPCWSTR lpSystemName, LPCWSTR lpAccountName, PSI
nameLen += 1;
ret = FALSE;
}
- else if (ReferencedDomainName && domainName)
+ else if (ReferencedDomainName)
{
strcpyW(ReferencedDomainName, domainName);
}
--
1.5.6
More information about the wine-patches
mailing list