Commit be493aa6 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

whoami: Enable compilation with long types.

parent bae8ef75
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = whoami.exe
IMPORTS = secur32
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment