Eric Pouech : uiautomationcore: Enable compilation with long types.

Alexandre Julliard julliard at winehq.org
Fri Feb 18 15:14:59 CST 2022


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

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Fri Feb 18 09:17:58 2022 +0100

uiautomationcore: 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/uiautomationcore/Makefile.in |  1 -
 dlls/uiautomationcore/uia_main.c  | 10 +++++-----
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/dlls/uiautomationcore/Makefile.in b/dlls/uiautomationcore/Makefile.in
index 919314c16d9..f0973fdec4c 100644
--- a/dlls/uiautomationcore/Makefile.in
+++ b/dlls/uiautomationcore/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
 MODULE = uiautomationcore.dll
 IMPORTLIB = uiautomationcore
 IMPORTS   = uuid ole32 oleaut32 user32
diff --git a/dlls/uiautomationcore/uia_main.c b/dlls/uiautomationcore/uia_main.c
index f1cf06ed4f5..c250d82a1e6 100644
--- a/dlls/uiautomationcore/uia_main.c
+++ b/dlls/uiautomationcore/uia_main.c
@@ -52,7 +52,7 @@ static ULONG WINAPI uia_object_wrapper_AddRef(IUnknown *iface)
     struct uia_object_wrapper *wrapper = impl_uia_object_wrapper_from_IUnknown(iface);
     ULONG refcount = InterlockedIncrement(&wrapper->refcount);
 
-    TRACE("%p, refcount %d\n", iface, refcount);
+    TRACE("%p, refcount %ld\n", iface, refcount);
 
     return refcount;
 }
@@ -62,7 +62,7 @@ static ULONG WINAPI uia_object_wrapper_Release(IUnknown *iface)
     struct uia_object_wrapper *wrapper = impl_uia_object_wrapper_from_IUnknown(iface);
     ULONG refcount = InterlockedDecrement(&wrapper->refcount);
 
-    TRACE("%p, refcount %d\n", iface, refcount);
+    TRACE("%p, refcount %ld\n", iface, refcount);
     if (!refcount)
     {
         IUnknown_Release(wrapper->marshaler);
@@ -178,7 +178,7 @@ ULONG WINAPI hwnd_host_provider_AddRef(IRawElementProviderSimple *iface)
     struct hwnd_host_provider *host_prov = impl_from_hwnd_host_provider(iface);
     ULONG refcount = InterlockedIncrement(&host_prov->refcount);
 
-    TRACE("%p, refcount %d\n", iface, refcount);
+    TRACE("%p, refcount %ld\n", iface, refcount);
 
     return refcount;
 }
@@ -188,7 +188,7 @@ ULONG WINAPI hwnd_host_provider_Release(IRawElementProviderSimple *iface)
     struct hwnd_host_provider *host_prov = impl_from_hwnd_host_provider(iface);
     ULONG refcount = InterlockedDecrement(&host_prov->refcount);
 
-    TRACE("%p, refcount %d\n", iface, refcount);
+    TRACE("%p, refcount %ld\n", iface, refcount);
 
     if (!refcount)
         heap_free(host_prov);
@@ -311,7 +311,7 @@ int WINAPI UiaLookupId(enum AutomationIdentifierType type, const GUID *guid)
 LRESULT WINAPI UiaReturnRawElementProvider(HWND hwnd, WPARAM wParam,
         LPARAM lParam, IRawElementProviderSimple *elprov)
 {
-    FIXME("(%p, %lx, %lx, %p) stub!\n", hwnd, wParam, lParam, elprov);
+    FIXME("(%p, %Ix, %Ix, %p) stub!\n", hwnd, wParam, lParam, elprov);
     return 0;
 }
 




More information about the wine-cvs mailing list