Module: wine Branch: master Commit: 084c8cc9c033532e86b37756957f3c6eda635cf9 URL: https://gitlab.winehq.org/wine/wine/-/commit/084c8cc9c033532e86b37756957f3c6...
Author: Marcus Meissner marcus@jet.franken.de Date: Tue Mar 12 14:20:27 2024 +0100
ntdll/tests: Fix size passed to GetModuleFileNameW.
---
dlls/ntdll/tests/exception.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c index e4922aac616..57d1b7f492b 100644 --- a/dlls/ntdll/tests/exception.c +++ b/dlls/ntdll/tests/exception.c @@ -10304,7 +10304,7 @@ static void test_backtrace(void)
if (count && !buffer[count - 1]) count--; /* win11 32-bit */ RtlPcToFileHeader( buffer[count - 1], &module ); - GetModuleFileNameW( module, name, sizeof(name) ); + GetModuleFileNameW( module, name, ARRAY_SIZE(name) ); if ((p = wcsrchr( name, '\' ))) p++; else p = name; ok( !wcsicmp( p, L"ntdll.dll" ), "wrong module %p %s for frame %u %p\n",