net: 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-04 09:56:51 +01:00 committed by Alexandre Julliard
parent 081bd13f11
commit d2a5c5ab46
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = net.exe MODULE = net.exe
IMPORTS = netapi32 user32 advapi32 IMPORTS = netapi32 user32 advapi32

View File

@ -61,7 +61,7 @@ static int output_vprintf(const WCHAR* fmt, va_list va_args)
len = FormatMessageW(FORMAT_MESSAGE_FROM_STRING, fmt, 0, 0, str, ARRAY_SIZE(str), &va_args); len = FormatMessageW(FORMAT_MESSAGE_FROM_STRING, fmt, 0, 0, str, ARRAY_SIZE(str), &va_args);
if (len == 0 && GetLastError() != ERROR_NO_WORK_DONE) if (len == 0 && GetLastError() != ERROR_NO_WORK_DONE)
WINE_FIXME("Could not format string: le=%u, fmt=%s\n", GetLastError(), wine_dbgstr_w(fmt)); WINE_FIXME("Could not format string: le=%lu, fmt=%s\n", GetLastError(), wine_dbgstr_w(fmt));
else else
output_write(str, len); output_write(str, len);
return 0; return 0;
@ -184,7 +184,7 @@ static BOOL net_enum_services(void)
for(i = 0; i < count; i++) for(i = 0; i < count; i++)
{ {
output_printf(L" %1\n", services[i].lpDisplayName); output_printf(L" %1\n", services[i].lpDisplayName);
WINE_TRACE("service=%s state=%d controls=%x\n", WINE_TRACE("service=%s state=%ld controls=%lx\n",
wine_dbgstr_w(services[i].lpServiceName), wine_dbgstr_w(services[i].lpServiceName),
services[i].ServiceStatusProcess.dwCurrentState, services[i].ServiceStatusProcess.dwCurrentState,
services[i].ServiceStatusProcess.dwControlsAccepted); services[i].ServiceStatusProcess.dwControlsAccepted);