eric pouech (@epo) commented about dlls/kernel32/tests/loader.c:
DeleteFileA( long_path ); }
+static void test_getmodulefilenamew_string_termination(void) +{ + WCHAR dll_name[MAX_PATH]; + int dll_name_len, dll_name_term; + DWORD rv, err; + HMODULE mod; + + GetModuleFileNameW(NULL, dll_name, MAX_PATH);
to be pendantic, we already have tests that cover "regular" GetModuleFileNameW behavior, so it doesn't bring much to the whole testsuite most of the tests for non failing access so I tend to simplify this as ``` DWORD dll_name_len; ... dll_name_len = GetModuleFileNameW(NULL, dll_name, MAX_PATH): ok(dll_name_len && dll_name_len < MAX_PATH, ....); ``` and move to the too short buffer tests -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10291#note_133842