Eric Pouech : net: Enable compilation with long types.

Alexandre Julliard julliard at winehq.org
Fri Feb 4 16:08:35 CST 2022


Module: wine
Branch: master
Commit: d2a5c5ab4681d5c934724ad833b15faba49dbd9b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d2a5c5ab4681d5c934724ad833b15faba49dbd9b

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Fri Feb  4 09:56:51 2022 +0100

net: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/net/Makefile.in | 1 -
 programs/net/net.c       | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/programs/net/Makefile.in b/programs/net/Makefile.in
index a4c0f2f238a..eb8e1e48ff3 100644
--- a/programs/net/Makefile.in
+++ b/programs/net/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
 MODULE    = net.exe
 IMPORTS   = netapi32 user32 advapi32
 
diff --git a/programs/net/net.c b/programs/net/net.c
index a8073956019..f9e64d2e2b9 100644
--- a/programs/net/net.c
+++ b/programs/net/net.c
@@ -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);
     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
         output_write(str, len);
     return 0;
@@ -184,7 +184,7 @@ static BOOL net_enum_services(void)
     for(i = 0; i < count; i++)
     {
         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),
                    services[i].ServiceStatusProcess.dwCurrentState,
                    services[i].ServiceStatusProcess.dwControlsAccepted);




More information about the wine-cvs mailing list