msi: Remove comparison of pointer with >= NULL (PVS-Studio).
This commit is contained in:
parent
a7daccb674
commit
be813aed6f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue