25 Mar
2025
25 Mar
'25
1:55 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/user32/sysparams.c:
else SetProcessDpiAwarenessContext( DPI_AWARENESS_CONTEXT_UNAWARE ); } + else if (QueryActCtxSettingsW( 0, NULL, L"http://schemas.microsoft.com/SMI/2016/WindowsSettings", + L"longPathAware", buffer, ARRAY_SIZE(buffer), NULL )) + { + TRACE( "got longPathAware=%s\n", debugstr_w(buffer) ); + if (!wcsicmp( buffer, L"true" )) + { + RtlGetCurrentPeb()->IsLongPathAwareProcess = 1;
I doubt user32 sets IsLongPathAwareProcess. It should be kernelbase/kernel32/ntdll because CLI applications don't load user32. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7540#note_98981