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
1 changed files with 1 additions and 2 deletions

View File

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