[PATCH 16/17] dlls/avicap32: enable compilation with long types

Eric Pouech eric.pouech at gmail.com
Mon Feb 7 16:11:15 CST 2022


Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---
 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-devel mailing list