1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

ntdll/tests: Fix size passed to GetModuleFileNameW.

This commit is contained in:
Marcus Meissner 2024-03-12 14:20:27 +01:00 committed by Alexandre Julliard
parent 354ddcb382
commit 084c8cc9c0

View file

@ -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",