Re: [PATCH v10 0/5] MR7540: kernel32/tests: Add tests for maximum path length limitation.
16 Jun
2025
16 Jun
'25
10:56 a.m.
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.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7540#note_106691
263
Age (days ago)
263
Last active (days ago)
0 comments
1 participants
participants (1)
-
Zhiyi Zhang (@zhiyi)