From de86079c6f969a46b8e89949fd5932a7ab8b396c Mon Sep 17 00:00:00 2001 From: Mike Battista <13860912+mikebattista@users.noreply.github.com> Date: Fri, 14 Apr 2023 08:57:03 -0700 Subject: [PATCH] Fixed #1540. --- generation/WinSDK/autoTypes.json | 4 ++-- scripts/ChangesSinceLastRelease.txt | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/generation/WinSDK/autoTypes.json b/generation/WinSDK/autoTypes.json index d4a17d01f..648c87e35 100644 --- a/generation/WinSDK/autoTypes.json +++ b/generation/WinSDK/autoTypes.json @@ -501,14 +501,14 @@ { "Namespace": "Windows.Win32.Foundation", "Name": "HLOCAL", - "ValueType": "DECLARE_HANDLE", + "ValueType": "void*", "CloseApi": "LocalFree", "InvalidHandleValues": [ -1, 0 ] }, { "Namespace": "Windows.Win32.Foundation", "Name": "HGLOBAL", - "ValueType": "DECLARE_HANDLE", + "ValueType": "void*", "CloseApi": "GlobalFree", "InvalidHandleValues": [ -1, 0 ] }, diff --git a/scripts/ChangesSinceLastRelease.txt b/scripts/ChangesSinceLastRelease.txt index 4625267e9..f41bad9e5 100644 --- a/scripts/ChangesSinceLastRelease.txt +++ b/scripts/ChangesSinceLastRelease.txt @@ -312,3 +312,6 @@ pStaticSamplers : [Const] => [Const,NativeArrayInfo(CountFieldName=NumStaticSamp pStaticSamplers : [Const] => [Const,NativeArrayInfo(CountFieldName=NumStaticSamplers)] pSubresourceParameters : [Const] => [Const,NativeArrayInfo(CountFieldName=SubresourceCount)] pViewInstanceLocations : [Const] => [Const,NativeArrayInfo(CountFieldName=ViewInstanceCount)] +# Fixed #1540. +Windows.Win32.Foundation.HGLOBAL.Value...System.IntPtr => System.Void* +Windows.Win32.Foundation.HLOCAL.Value...System.IntPtr => System.Void*