Skip to content

Commit

Permalink
Fixed #1312.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebattista committed Apr 14, 2023
1 parent 2579722 commit 715e1c9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generation/WinSDK/emitter.settings.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -1564,4 +1564,6 @@ D3D12_ROOT_SIGNATURE_DESC1::pParameters=[NativeArrayInfo(CountFieldName = "NumPa
D3D12_ROOT_SIGNATURE_DESC1::pStaticSamplers=[NativeArrayInfo(CountFieldName = "NumStaticSamplers")]
D3D12_STREAM_OUTPUT_DESC::pBufferStrides=[NativeArrayInfo(CountFieldName = "NumStrides")]
D3D12_STREAM_OUTPUT_DESC::pSODeclaration=[NativeArrayInfo(CountFieldName = "NumEntries")]
D3D12_VIEW_INSTANCING_DESC::pViewInstanceLocations=[NativeArrayInfo(CountFieldName = "ViewInstanceCount")]
D3D12_VIEW_INSTANCING_DESC::pViewInstanceLocations=[NativeArrayInfo(CountFieldName = "ViewInstanceCount")]
CreatePipe::hReadPipe=[IgnoreIfReturn("0")]
CreatePipe::hWritePipe=[IgnoreIfReturn("0")]
8 changes: 8 additions & 0 deletions generation/WinSDK/manual/Metadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ public GuidAttribute(uint a, ushort b, ushort c, byte d, byte e, byte f, byte g,
}
}

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = true)]
public class IgnoreIfReturnAttribute : Attribute
{
public IgnoreIfReturnAttribute(String Value)
{
}
}

[AttributeUsage(AttributeTargets.Struct, AllowMultiple = true, Inherited = true)]
public class InvalidHandleValueAttribute : Attribute
{
Expand Down
4 changes: 4 additions & 0 deletions scripts/ChangesSinceLastRelease.txt
Original file line number Diff line number Diff line change
Expand Up @@ -603,3 +603,7 @@ pViewInstanceLocations : [Const] => [Const,NativeArrayInfo(CountFieldName=ViewIn
# Fixed #1540.
Windows.Win32.Foundation.HGLOBAL.Value...System.IntPtr => System.Void*
Windows.Win32.Foundation.HLOCAL.Value...System.IntPtr => System.Void*
# Fixed #1312.
Windows.Win32.Foundation.Metadata.IgnoreIfReturnAttribute added
Windows.Win32.System.Pipes.Apis.CreatePipe : hReadPipe : [Out] => [IgnoreIfReturn(0),Out]
Windows.Win32.System.Pipes.Apis.CreatePipe : hWritePipe : [Out] => [IgnoreIfReturn(0),Out]

0 comments on commit 715e1c9

Please sign in to comment.