From: yaoyongjie yaoyongjie@uniontech.com
--- dlls/user32/sysparams.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c index a7ce2e54d35..0bc6c9560b0 100644 --- a/dlls/user32/sysparams.c +++ b/dlls/user32/sysparams.c @@ -210,6 +210,15 @@ void SYSPARAMS_Init(void) 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; + } + } }
static BOOL update_desktop_wallpaper(void)