Skip to content

Commit

Permalink
Fixed #1260.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebattista committed Mar 9, 2023
1 parent 1f9a88a commit fde72a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions scripts/ChangesSinceLastRelease.txt
Expand Up @@ -4050,3 +4050,15 @@ Windows.Win32.UI.Shell.Apis.SHGetDiskFreeSpaceExW : pulTotalNumberOfFreeBytes...
Windows.Win32.UI.Shell.IFileSystemBindData2.GetFileID : pliFileID...LARGE_INTEGER* => Int64*
Windows.Win32.UI.Shell.IFileSystemBindData2.SetFileID : liFileID...LARGE_INTEGER => Int64
Windows.Win32.UI.WindowsAndMessaging.DEVICE_EVENT_EXTERNAL_REQUEST.SystemTime...Windows.Win32.Foundation.LARGE_INTEGER => System.Int64
# Fixed #1260.
Windows.Win32.Devices.Display.Apis.QueryDisplayConfig : currentTopologyId : [Optional,Out] => [In,Optional,Out]
Windows.Win32.Media.Audio.DirectSound.Apis.DirectSoundCaptureCreate : pUnkOuter : [In] => [In,Optional]
Windows.Win32.Media.Audio.DirectSound.Apis.DirectSoundCaptureCreate8 : pUnkOuter : [In] => [In,Optional]
Windows.Win32.Media.Audio.DirectSound.Apis.DirectSoundCreate : pUnkOuter : [Optional] => [In,Optional]
Windows.Win32.Media.Audio.DirectSound.Apis.DirectSoundCreate8 : pUnkOuter : [In] => [In,Optional]
Windows.Win32.Media.Audio.DirectSound.Apis.DirectSoundFullDuplexCreate : pUnkOuter : [In] => [In,Optional]
Windows.Win32.Media.Audio.DirectSound.IDirectSound.CreateSoundBuffer : pUnkOuter : [Optional] => [In,Optional]
Windows.Win32.Media.Audio.DirectSound.IDirectSoundCapture.CreateCaptureBuffer : pUnkOuter : [In] => [In,Optional]
Windows.Win32.UI.HiDpi.Apis.SystemParametersInfoForDpi : pvParam : [In,Optional] => [In,Optional,Out]
Windows.Win32.UI.WindowsAndMessaging.Apis.SystemParametersInfoA : pvParam : [In,Optional] => [In,Optional,Out]
Windows.Win32.UI.WindowsAndMessaging.Apis.SystemParametersInfoW : pvParam : [In,Optional] => [In,Optional,Out]
4 changes: 2 additions & 2 deletions sources/ClangSharpSourceToWinmd/MetadataSyntaxTreeCleaner.cs
Expand Up @@ -854,12 +854,12 @@ private SyntaxNode CreateAttributeListForSal(AttributeListSyntax cppAttrList)

break;
}
else if (salAttr.P1 == "_Maybenull_" || salAttr.P1 == "_Pre_maybenull_")
else if (salAttr.P1 == "_Maybenull_" || salAttr.P1 == "_Pre_maybenull_" || salAttr.P1 == "_Pre_null_")
{
isIn = true;
isOpt = true;

break;
continue;
}

if (salAttr.P1.Contains("_opt"))
Expand Down

0 comments on commit fde72a1

Please sign in to comment.