whoami: Enable compilation with long types.

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-07 08:40:19 +01:00 committed by Alexandre Julliard
parent bae8ef750a
commit be493aa6ab
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = whoami.exe
IMPORTS = secur32

View File

@ -70,7 +70,7 @@ int __cdecl wmain(int argc, WCHAR *argv[])
result = GetUserNameExW(NameSamCompatible, NULL, &size);
if (result || GetLastError() != ERROR_MORE_DATA)
{
WINE_ERR("GetUserNameExW failed, result %d, error %d\n", result, GetLastError());
WINE_ERR("GetUserNameExW failed, result %d, error %ld\n", result, GetLastError());
return 1;
}
@ -88,7 +88,7 @@ int __cdecl wmain(int argc, WCHAR *argv[])
output_write(L"\r\n", 2);
}
else
WINE_ERR("GetUserNameExW failed, error %d\n", GetLastError());
WINE_ERR("GetUserNameExW failed, error %ld\n", GetLastError());
HeapFree(GetProcessHeap(), 0, buf);
return 0;