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 )
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user