[PATCH 17/27] dlls/gameux: enable compilation with long types
Eric Pouech
eric.pouech at gmail.com
Thu Feb 10 01:42:55 CST 2022
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
dlls/gameux/Makefile.in | 1 -
dlls/gameux/gameexplorer.c | 6 +++---
dlls/gameux/gamestatistics.c | 8 ++++----
3 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/dlls/gameux/Makefile.in b/dlls/gameux/Makefile.in
index 1edc4213a6e..b541ae9470b 100644
--- a/dlls/gameux/Makefile.in
+++ b/dlls/gameux/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = gameux.dll
IMPORTS = uuid shell32 oleaut32 ole32 user32 advapi32 shlwapi
diff --git a/dlls/gameux/gameexplorer.c b/dlls/gameux/gameexplorer.c
index 5fdacacf4b2..c0513fc65cb 100644
--- a/dlls/gameux/gameexplorer.c
+++ b/dlls/gameux/gameexplorer.c
@@ -536,7 +536,7 @@ static HRESULT GAMEUX_RegisterGame(LPCWSTR sGDFBinaryPath,
CloseHandle(thread);
if(ret != WAIT_OBJECT_0)
{
- ERR("Wait failed (%#x).\n", ret);
+ ERR("Wait failed (%#lx).\n", ret);
hr = E_FAIL;
goto done;
}
@@ -818,7 +818,7 @@ static ULONG WINAPI GameExplorerImpl_AddRef(IGameExplorer *iface)
ref = InterlockedIncrement(&This->ref);
- TRACE("(%p): ref=%d\n", This, ref);
+ TRACE("(%p): ref=%ld\n", This, ref);
return ref;
}
@@ -828,7 +828,7 @@ static ULONG WINAPI GameExplorerImpl_Release(IGameExplorer *iface)
LONG ref;
ref = InterlockedDecrement(&This->ref);
- TRACE("(%p): ref=%d\n", This, ref);
+ TRACE("(%p): ref=%ld\n", This, ref);
if(ref == 0)
{
diff --git a/dlls/gameux/gamestatistics.c b/dlls/gameux/gamestatistics.c
index 1696ee1e76a..4e120936f21 100644
--- a/dlls/gameux/gamestatistics.c
+++ b/dlls/gameux/gamestatistics.c
@@ -672,7 +672,7 @@ static ULONG WINAPI GameStatisticsImpl_AddRef(IGameStatistics *iface)
ref = InterlockedIncrement(&This->ref);
- TRACE("(%p): ref=%d\n", This, ref);
+ TRACE("(%p): ref=%ld\n", This, ref);
return ref;
}
@@ -682,7 +682,7 @@ static ULONG WINAPI GameStatisticsImpl_Release(IGameStatistics *iface)
LONG ref;
ref = InterlockedDecrement( &This->ref );
- TRACE("(%p): ref=%d\n", This, ref);
+ TRACE("(%p): ref=%ld\n", This, ref);
if ( ref == 0 )
{
@@ -1028,7 +1028,7 @@ static ULONG WINAPI GameStatisticsMgrImpl_AddRef(IGameStatisticsMgr *iface)
ref = InterlockedIncrement(&This->ref);
- TRACE("(%p): ref=%d\n", This, ref);
+ TRACE("(%p): ref=%ld\n", This, ref);
return ref;
}
@@ -1038,7 +1038,7 @@ static ULONG WINAPI GameStatisticsMgrImpl_Release(IGameStatisticsMgr *iface)
LONG ref;
ref = InterlockedDecrement(&This->ref);
- TRACE("(%p): ref=%d\n", This, ref);
+ TRACE("(%p): ref=%ld\n", This, ref);
if ( ref == 0 )
{
More information about the wine-devel
mailing list