Zhiyi Zhang (@zhiyi) commented about dlls/kernel32/tests/file.c:
- {
 rovi.dwOSVersionInfoSize = sizeof(rovi);if (pRtlGetVersion && S_OK == pRtlGetVersion(&rovi))trace("windows version: win %ld, build %ld\n", rovi.dwMajorVersion, rovi.dwBuildNumber);- }
 - return rovi.dwMajorVersion >= 10 && rovi.dwBuildNumber >= 14393;
 +}
+static BOOL is_reg_enable_long_path(void) +{
- static DWORD LongPathEnabled = -1;
 - DWORD ret;
 - HKEY hkey;
 - DWORD type, size = sizeof(LongPathEnabled);
 
You can put ret, type, and size on the same line and initialise size after RegOpenKeyExA succeeds.