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.