Eric Pouech : regsvr32: Enable compilation with long types.

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


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

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

regsvr32: 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/regsvr32/Makefile.in | 1 -
 programs/regsvr32/regsvr32.c  | 6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/programs/regsvr32/Makefile.in b/programs/regsvr32/Makefile.in
index ed8374a2cb6..38779634408 100644
--- a/programs/regsvr32/Makefile.in
+++ b/programs/regsvr32/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
 MODULE    = regsvr32.exe
 IMPORTS   = ole32 user32 kernelbase
 
diff --git a/programs/regsvr32/regsvr32.c b/programs/regsvr32/regsvr32.c
index c56479015d8..0efa6bcd839 100644
--- a/programs/regsvr32/regsvr32.c
+++ b/programs/regsvr32/regsvr32.c
@@ -47,7 +47,7 @@ static void WINAPIV output_write(UINT id, ...)
 
     if (!LoadStringW(GetModuleHandleW(NULL), id, fmt, ARRAY_SIZE(fmt)))
     {
-        WINE_FIXME("LoadString failed with %d\n", GetLastError());
+        WINE_FIXME("LoadString failed with %ld\n", GetLastError());
         return;
     }
 
@@ -57,7 +57,7 @@ static void WINAPIV output_write(UINT id, ...)
     va_end(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));
         return;
     }
 
@@ -153,7 +153,7 @@ static void reexec_self( WORD machine )
     }
     else
     {
-        WINE_TRACE("failed to restart, err=%d\n", GetLastError());
+        WINE_TRACE("failed to restart, err=%ld\n", GetLastError());
     }
     Wow64RevertWow64FsRedirection(cookie);
     HeapFree(GetProcessHeap(), 0, cmdline);




More information about the wine-cvs mailing list