Skip to content

Commit

Permalink
RAIIFree functions have wrong type. Fixed #1892.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebattista committed May 7, 2024
1 parent fdfa1dc commit 8238eb2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions generation/WinSDK/autoTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,13 @@
{
"Name": "COMPRESSOR_HANDLE",
"ValueType": "DECLARE_HANDLE",
"CloseApi": "CloseCompressor",
"InvalidHandleValues": [ -1, 0 ],
"NativeTypedef": true
},
{
"Name": "DECOMPRESSOR_HANDLE",
"ValueType": "DECLARE_HANDLE",
"CloseApi": "CloseDecompressor",
"InvalidHandleValues": [ -1, 0 ],
"NativeTypedef": true
Expand Down
8 changes: 8 additions & 0 deletions scripts/ChangesSinceLastRelease.txt
Original file line number Diff line number Diff line change
Expand Up @@ -871,3 +871,11 @@ Windows.Win32.System.Diagnostics.Etw.Apis.EventWriteTransfer : RegHandle...UInt6
Windows.Win32.System.Diagnostics.Etw.REGHANDLE added
# Fixed #1884.
Windows.Win32.System.Variant.VARENUM : [Documentation(https://learn.microsoft.com/windows/win32/api/wtypes/ne-wtypes-varenum)] => [Documentation(https://learn.microsoft.com/windows/win32/api/wtypes/ne-wtypes-varenum),Flags]
# Fixed #1892.
Windows.Win32.Storage.Compression.Apis.CloseDecompressor : DecompressorHandle...IntPtr => DECOMPRESSOR_HANDLE
Windows.Win32.Storage.Compression.Apis.Decompress : DecompressorHandle...IntPtr => DECOMPRESSOR_HANDLE
Windows.Win32.Storage.Compression.Apis.QueryDecompressorInformation : DecompressorHandle...IntPtr => DECOMPRESSOR_HANDLE
Windows.Win32.Storage.Compression.Apis.ResetDecompressor : DecompressorHandle...IntPtr => DECOMPRESSOR_HANDLE
Windows.Win32.Storage.Compression.Apis.SetDecompressorInformation : DecompressorHandle...IntPtr => DECOMPRESSOR_HANDLE
Windows.Win32.Storage.Compression.COMPRESSOR_HANDLE : [InvalidHandleValue(-1),InvalidHandleValue(0),NativeTypedef,RAIIFree(CloseDecompressor)] => [InvalidHandleValue(-1),InvalidHandleValue(0),NativeTypedef,RAIIFree(CloseCompressor)]
Windows.Win32.Storage.Compression.DECOMPRESSOR_HANDLE added

0 comments on commit 8238eb2

Please sign in to comment.