26 Mar
2025
26 Mar
'25
10:25 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/kernelbase/file.c:
+ if (ret == ERROR_SUCCESS) + { + DWORD type, size = sizeof(LongPathEnabled); + ret = RegQueryValueExA(hkey, "LongPathsEnabled", NULL, &type, (LPBYTE)&LongPathEnabled, &size); + RegCloseKey(hkey); + } + else + { + LongPathEnabled = 0; + } + TRACE("in registry LongPathsEnabled: %ld\n", LongPathEnabled); + } + return LongPathEnabled == 1; +} + +static BOOL is_longpath_enabled_in_manifest(void) Let's remove this function and use the comparison directly.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7540#note_99112