Eric Pouech : avicap32: Enable compilation with long types.

Alexandre Julliard julliard at winehq.org
Tue Feb 8 16:11:44 CST 2022


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

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Mon Feb  7 23:11:15 2022 +0100

avicap32: Enable compilation with long types.

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

---

 dlls/avicap32/Makefile.in     | 1 -
 dlls/avicap32/avicap32_main.c | 6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/avicap32/Makefile.in b/dlls/avicap32/Makefile.in
index b640349b57d..9281990e211 100644
--- a/dlls/avicap32/Makefile.in
+++ b/dlls/avicap32/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
 MODULE    = avicap32.dll
 UNIXLIB   = avicap32.so
 IMPORTLIB = avicap32
diff --git a/dlls/avicap32/avicap32_main.c b/dlls/avicap32/avicap32_main.c
index 3ce9d5240b8..cefd1f0fe6e 100644
--- a/dlls/avicap32/avicap32_main.c
+++ b/dlls/avicap32/avicap32_main.c
@@ -59,13 +59,13 @@ static void register_class(void)
     };
 
     if (!RegisterClassExW(&class) && GetLastError() != ERROR_CLASS_ALREADY_EXISTS)
-        ERR("Failed to register class, error %u.\n", GetLastError());
+        ERR("Failed to register class, error %lu.\n", GetLastError());
 }
 
 static void unregister_class(void)
 {
     if (!UnregisterClassW(class_name, avicap_instance) && GetLastError() != ERROR_CLASS_DOES_NOT_EXIST)
-        ERR("Failed to unregister class, error %u.\n", GetLastError());
+        ERR("Failed to unregister class, error %lu.\n", GetLastError());
 }
 
 /***********************************************************************
@@ -74,7 +74,7 @@ static void unregister_class(void)
 HWND VFWAPI capCreateCaptureWindowW(const WCHAR *window_name, DWORD style,
         int x, int y, int width, int height, HWND parent, int id)
 {
-    TRACE("window_name %s, style %#x, x %d, y %d, width %d, height %d, parent %p, id %#x.\n",
+    TRACE("window_name %s, style %#lx, x %d, y %d, width %d, height %d, parent %p, id %#x.\n",
             debugstr_w(window_name), style, x, y, width, height, parent, id);
 
     return CreateWindowW(class_name, window_name, style, x, y, width, height, parent, NULL, avicap_instance, NULL);




More information about the wine-cvs mailing list