From 6e55bda8460f526c35f2e51e475b53dc52cccd9e Mon Sep 17 00:00:00 2001
From: uye <99072975+ABA2396@users.noreply.github.com>
Date: Sun, 24 Aug 2025 19:05:01 +0800
Subject: [PATCH] chore: luid
---
MAA.sln.DotSettings | 1 +
src/MaaWpfGui/Helper/GpuOption.cs | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/MAA.sln.DotSettings b/MAA.sln.DotSettings
index 0ab9878b16..d4c391ac98 100644
--- a/MAA.sln.DotSettings
+++ b/MAA.sln.DotSettings
@@ -101,6 +101,7 @@
True
True
True
+ True
True
True
True
diff --git a/src/MaaWpfGui/Helper/GpuOption.cs b/src/MaaWpfGui/Helper/GpuOption.cs
index d1f8897e0a..645d83afc0 100644
--- a/src/MaaWpfGui/Helper/GpuOption.cs
+++ b/src/MaaWpfGui/Helper/GpuOption.cs
@@ -210,7 +210,7 @@ namespace MaaWpfGui.Helper
static extern HRESULT D3D12CreateDevice([MarshalAs(UnmanagedType.IUnknown)] object pAdapter, D3D_FEATURE_LEVEL minimumFeatureLevel, in Guid riid, nint ppDevice);
}
- private static unsafe string? GetAdapterInstancePath(LUID lUid)
+ private static unsafe string? GetAdapterInstancePath(LUID luid)
{
try
{
@@ -219,7 +219,7 @@ namespace MaaWpfGui.Helper
header = new DISPLAYCONFIG_DEVICE_INFO_HEADER
{
size = (uint)sizeof(DISPLAYCONFIG_ADAPTER_NAME),
- adapterId = lUid,
+ adapterId = luid,
id = 0,
type = DISPLAYCONFIG_DEVICE_INFO_TYPE.DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME,
},