We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05262a4 commit 68a7d51Copy full SHA for 68a7d51
src/Ookii.Dialogs.Wpf/VistaFolderBrowserDialog.cs
@@ -232,13 +232,13 @@ private bool RunDialogDownlevel(IntPtr owner)
232
}
233
finally
234
{
235
- if( rootItemIdList != null )
+ if( rootItemIdList != IntPtr.Zero )
236
237
IMalloc malloc = NativeMethods.SHGetMalloc();
238
malloc.Free(rootItemIdList);
239
Marshal.ReleaseComObject(malloc);
240
241
- if( resultItemIdList != null )
+ if( resultItemIdList != IntPtr.Zero )
242
243
Marshal.FreeCoTaskMem(resultItemIdList);
244
0 commit comments