Skip to content

Commit 5501985

Browse files
Suppress IDE0031
1 parent 851d52d commit 5501985

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/System.Private.Windows.Core/src/System/Private/Windows/Ole/FormatEnumerator.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ public int Next(int celt, ComTypes.FORMATETC[] rgelt, int[]? pceltFetched)
5656
{
5757
if (_current >= _formats.Count || celt <= 0)
5858
{
59+
#pragma warning disable IDE0031
5960
if (pceltFetched is not null)
6061
{
6162
pceltFetched[0] = 0;
6263
}
64+
#pragma warning restore IDE0031
6365

6466
return (int)HRESULT.S_FALSE;
6567
}
@@ -74,10 +76,12 @@ public int Next(int celt, ComTypes.FORMATETC[] rgelt, int[]? pceltFetched)
7476
lindex = -1
7577
};
7678

79+
#pragma warning disable IDE0031
7780
if (pceltFetched is not null)
7881
{
7982
pceltFetched[0] = 1;
8083
}
84+
#pragma warning restore IDE0031
8185

8286
_current++;
8387
return (int)HRESULT.S_OK;

0 commit comments

Comments
 (0)