[SHELL32] Do not reopen the drive properties dialog on cancel (#4383)

CORE-18073
This commit is contained in:
Mark Jansen
2022-03-12 15:25:48 +01:00
committed by GitHub
parent 248fe4714a
commit af33607a27

View File

@@ -226,10 +226,8 @@ SH_ShowDriveProperties(WCHAR *pwszDrive, LPCITEMIDLIST pidlFolder, PCUITEMID_CHI
if (pDrvDefExt)
pDrvDefExt->Release();
if (ret > 0)
if (ret >= 0)
return S_OK;
if (ret == 0)
return S_FALSE;
return E_FAIL;
}