gameux: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-02-10 08:42:55 +01:00 committed by Alexandre Julliard
parent 02722b12e3
commit e443ee51f7
3 changed files with 15 additions and 16 deletions

View file

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = gameux.dll
IMPORTS = uuid shell32 oleaut32 ole32 user32 advapi32 shlwapi

View file

@ -161,7 +161,7 @@ HRESULT GAMEUX_buildGameRegistryPath(GAME_INSTALL_SCOPE installScope,
if(SUCCEEDED(hr))
lstrcpyW(*lpRegistryPath, sRegistryPath);
TRACE("result: 0x%x, path: %s\n", hr, debugstr_w(*lpRegistryPath));
TRACE("result: 0x%lx, path: %s\n", hr, debugstr_w(*lpRegistryPath));
return hr;
}
/*******************************************************************************
@ -247,7 +247,7 @@ static HRESULT GAMEUX_WriteRegistryRecord(struct GAMEUX_GAME_DATA *GameData)
}
HeapFree(GetProcessHeap(), 0, lpRegistryKey);
TRACE("returning 0x%x\n", hr);
TRACE("returning 0x%lx\n", hr);
return hr;
}
/*******************************************************************************
@ -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;
}
@ -549,7 +549,7 @@ static HRESULT GAMEUX_RegisterGame(LPCWSTR sGDFBinaryPath,
done:
GAMEUX_uninitGameData(&GameData);
TRACE("returning 0x%08x\n", hr);
TRACE("returning 0x%08lx\n", hr);
return hr;
}
/*******************************************************************************
@ -685,7 +685,7 @@ static HRESULT GAMEUX_UpdateGame(LPGUID InstanceID) {
}
HeapFree(GetProcessHeap(), 0, lpRegistryPath);
TRACE("returning 0x%x\n", hr);
TRACE("returning 0x%lx\n", hr);
return hr;
}
/*******************************************************************************
@ -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)
{

View file

@ -293,7 +293,7 @@ static HRESULT GAMEUX_updateStatisticsFile(struct GAMEUX_STATS *stats)
SysFreeString(bstrCategory);
SysFreeString(bstrStatistics);
SysFreeString(V_BSTR(&vStatsFilePath));
TRACE("ret=0x%x\n", hr);
TRACE("ret=0x%lx\n", hr);
return hr;
}
/*******************************************************************************
@ -384,7 +384,7 @@ static HRESULT GAMEUX_getAppIdFromGDFPath(
HeapFree(GetProcessHeap(), 0, lpRegistryPath);
TRACE("found app id: %s, return: %#x\n", debugstr_w(lpApplicationId), hr);
TRACE("found app id: %s, return: %#lx\n", debugstr_w(lpApplicationId), hr);
return hr;
}
/*******************************************************************
@ -606,7 +606,7 @@ static HRESULT GAMEUX_loadGameStatistics(struct GAMEUX_STATS *pStats,
if (FAILED(hr)) return hr;
hr = GAMEUX_loadStatisticsFromFile(pStats);
TRACE("ldstats finished, res: %#x\n", hr);
TRACE("ldstats finished, res: %#lx\n", hr);
if(hr == S_OK)
{
*pOpenResult = GAMESTATS_OPEN_OPENED;
@ -621,7 +621,7 @@ static HRESULT GAMEUX_loadGameStatistics(struct GAMEUX_STATS *pStats,
else
hr = HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND);
TRACE("openResult=%#x ret=%#x\n", *pOpenResult, hr);
TRACE("openResult=%#x ret=%#lx\n", *pOpenResult, hr);
return hr;
}
/*******************************************************************
@ -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 )
{