kernelbase: Removed useless casts to long.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-02-01 14:05:57 +01:00 committed by Alexandre Julliard
parent 0c0f80a333
commit 3a7a612776
1 changed files with 2 additions and 2 deletions

View File

@ -461,13 +461,13 @@ static BOOL start_debugger( EXCEPTION_POINTERS *epointers, HANDLE event )
{
size_t format_size = lstrlenW( format ) + 2*20;
cmdline = HeapAlloc( GetProcessHeap(), 0, format_size * sizeof(WCHAR) );
swprintf( cmdline, format_size, format, (long)GetCurrentProcessId(), (long)HandleToLong(event) );
swprintf( cmdline, format_size, format, GetCurrentProcessId(), HandleToLong(event) );
HeapFree( GetProcessHeap(), 0, format );
}
else
{
cmdline = HeapAlloc( GetProcessHeap(), 0, 80 * sizeof(WCHAR) );
swprintf( cmdline, 80, L"winedbg --auto %ld %ld", (long)GetCurrentProcessId(), (long)HandleToLong(event) );
swprintf( cmdline, 80, L"winedbg --auto %ld %ld", GetCurrentProcessId(), HandleToLong(event) );
}
if (!autostart)