Remove ComPtr<T>.GetVoidAddressOf from D2D1 projects

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-12 23:13:51 +02:00
1 親 960ce21899
コミット e89433da46
5ファイル変更
+7 -22

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -24,7 +24,7 @@ internal static unsafe class ICanvasDeviceExtensions
// Get the ICanvasResourceWrapperNative wrapper around the input device
canvasDevice.QueryInterface(
riid: Win32.__uuidof<ICanvasResourceWrapperNative>(),
ppvObject: canvasDeviceResourceWrapperNative.GetVoidAddressOf()).Assert();
ppvObject: (void**)canvasDeviceResourceWrapperNative.GetAddressOf()).Assert();
// Get the underlying ID2D1Device1 instance in use
HRESULT hresult = canvasDeviceResourceWrapperNative.Get()->GetNativeResource(
@@ -61,7 +61,7 @@ internal static unsafe class ICanvasDeviceExtensions
// Get the ID2D1DeviceContextPool interface reference
canvasDevice.QueryInterface(
riid: Win32.__uuidof<ID2D1DeviceContextPool>(),
ppvObject: d2D1DeviceContextPool.GetVoidAddressOf()).Assert();
ppvObject: (void**)d2D1DeviceContextPool.GetAddressOf()).Assert();
// Get a new ID2D1DeviceContextLease object from the retrieved pool
d2D1DeviceContextPool.Get()->GetDeviceContextLease(d2D1DeviceContextLease).Assert();
+2 -2
ファイルの表示
@@ -35,8 +35,8 @@ internal static unsafe class IUnknownExtensions
using ComPtr<IUnknown> leftUnknown = default;
using ComPtr<IUnknown> rightUnknown = default;
((IUnknown*)Unsafe.AsPointer(ref left))->QueryInterface(Win32.__uuidof<IUnknown>(), leftUnknown.GetVoidAddressOf()).Assert();
((IUnknown*)right)->QueryInterface(Win32.__uuidof<IUnknown>(), rightUnknown.GetVoidAddressOf()).Assert();
((IUnknown*)Unsafe.AsPointer(ref left))->QueryInterface(Win32.__uuidof<IUnknown>(), (void**)leftUnknown.GetAddressOf()).Assert();
((IUnknown*)right)->QueryInterface(Win32.__uuidof<IUnknown>(), (void**)rightUnknown.GetAddressOf()).Assert();
return leftUnknown.Get() == rightUnknown.Get();
}