chore: luid

This commit is contained in:
uye
2025-08-24 19:05:01 +08:00
parent a8164506d9
commit c6e5fd43cb
2 changed files with 3 additions and 2 deletions

View File

@@ -101,6 +101,7 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=lpwndpl/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=ls_005B_0022sub/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=luestacks/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=luid/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=maatouch/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=MAA_0027s/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=memuc/@EntryIndexedValue">True</s:Boolean>

View File

@@ -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,
},