msi: Remove comparison of pointer with >= NULL (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2015-03-09 10:30:56 +01:00 committed by Alexandre Julliard
parent a7daccb674
commit be813aed6f

View File

@ -155,8 +155,7 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
if( !pdb ) if( !pdb )
return ERROR_INVALID_PARAMETER; return ERROR_INVALID_PARAMETER;
if (szPersist - MSIDBOPEN_PATCHFILE >= MSIDBOPEN_READONLY && if (szPersist - MSIDBOPEN_PATCHFILE <= MSIDBOPEN_CREATEDIRECT)
szPersist - MSIDBOPEN_PATCHFILE <= MSIDBOPEN_CREATEDIRECT)
{ {
TRACE("Database is a patch\n"); TRACE("Database is a patch\n");
szPersist -= MSIDBOPEN_PATCHFILE; szPersist -= MSIDBOPEN_PATCHFILE;