Eric Pouech : wiaservc: Enable compilation with long types.
Alexandre Julliard
julliard at winehq.org
Tue Feb 22 16:06:50 CST 2022
Module: wine
Branch: master
Commit: 48dc5189342c77b7a67c9cc0f0a7fc813cb3fdd4
URL: https://source.winehq.org/git/wine.git/?a=commit;h=48dc5189342c77b7a67c9cc0f0a7fc813cb3fdd4
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Tue Feb 22 09:41:58 2022 +0100
wiaservc: 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/wiaservc/Makefile.in | 1 -
dlls/wiaservc/service.c | 6 +++---
dlls/wiaservc/wiadevmgr.c | 24 ++++++++++++------------
3 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/dlls/wiaservc/Makefile.in b/dlls/wiaservc/Makefile.in
index 9d71d10423e..c2ba299c4e3 100644
--- a/dlls/wiaservc/Makefile.in
+++ b/dlls/wiaservc/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = wiaservc.dll
IMPORTS = uuid ole32 advapi32
diff --git a/dlls/wiaservc/service.c b/dlls/wiaservc/service.c
index 524181f72a0..3d2ba148ea1 100644
--- a/dlls/wiaservc/service.c
+++ b/dlls/wiaservc/service.c
@@ -69,7 +69,7 @@ ServiceHandler(DWORD ctrl, DWORD event_type, LPVOID event_data, LPVOID context)
SetEvent(stop_event);
break;
default:
- FIXME("ignoring handle service ctrl %x\n", ctrl);
+ FIXME("ignoring handle service ctrl %lx\n", ctrl);
UpdateStatus(status.dwCurrentState, NO_ERROR, 0);
break;
}
@@ -107,7 +107,7 @@ StartCount(void)
VOID WINAPI
ServiceMain(DWORD dwArgc, LPWSTR *lpszArgv)
{
- TRACE("(%d, %p)\n", dwArgc, lpszArgv);
+ TRACE("(%ld, %p)\n", dwArgc, lpszArgv);
stop_event = CreateEventW(NULL, TRUE, FALSE, NULL);
if (!stop_event) {
@@ -117,7 +117,7 @@ ServiceMain(DWORD dwArgc, LPWSTR *lpszArgv)
status_handle = RegisterServiceCtrlHandlerExW(L"stisvc", ServiceHandler, NULL);
if (!status_handle) {
- ERR("failed to register handler: %u\n", GetLastError());
+ ERR("failed to register handler: %lu\n", GetLastError());
return;
}
diff --git a/dlls/wiaservc/wiadevmgr.c b/dlls/wiaservc/wiadevmgr.c
index 58720ef361a..e0156b7f5a2 100644
--- a/dlls/wiaservc/wiadevmgr.c
+++ b/dlls/wiaservc/wiadevmgr.c
@@ -67,7 +67,7 @@ static ULONG WINAPI enumwiadevinfo_AddRef(IEnumWIA_DEV_INFO *iface)
{
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
ULONG ref = InterlockedIncrement(&This->ref);
- TRACE("(%p)->(%u)\n", This, ref);
+ TRACE("(%p)->(%lu)\n", This, ref);
return ref;
}
@@ -76,7 +76,7 @@ static ULONG WINAPI enumwiadevinfo_Release(IEnumWIA_DEV_INFO *iface)
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
ULONG ref = InterlockedDecrement(&This->ref);
- TRACE("(%p)->(%u)\n", This, ref);
+ TRACE("(%p)->(%lu)\n", This, ref);
if (ref == 0)
HeapFree(GetProcessHeap(), 0, This);
@@ -87,7 +87,7 @@ static HRESULT WINAPI enumwiadevinfo_Next(IEnumWIA_DEV_INFO *iface, ULONG count,
{
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
- FIXME("(%p, %d, %p, %p): stub\n", This, count, elem, fetched);
+ FIXME("(%p, %ld, %p, %p): stub\n", This, count, elem, fetched);
*fetched = 0;
return E_NOTIMPL;
@@ -97,7 +97,7 @@ static HRESULT WINAPI enumwiadevinfo_Skip(IEnumWIA_DEV_INFO *iface, ULONG count)
{
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
- FIXME("(%p, %u): stub\n", This, count);
+ FIXME("(%p, %lu): stub\n", This, count);
return E_NOTIMPL;
}
@@ -182,7 +182,7 @@ static HRESULT WINAPI wiadevmgr_EnumDeviceInfo(IWiaDevMgr *iface, LONG flag, IEn
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
enumwiadevinfo *enuminfo;
- TRACE("(%p)->(%x, %p)\n", This, flag, ret);
+ TRACE("(%p)->(%lx, %p)\n", This, flag, ret);
*ret = NULL;
@@ -208,7 +208,7 @@ static HRESULT WINAPI wiadevmgr_SelectDeviceDlg(IWiaDevMgr *iface, HWND hwndPare
LONG lFlags, BSTR *pbstrDeviceID, IWiaItem **ppItemRoot)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
- FIXME("(%p, %p, %d, 0x%x, %p, %p): stub\n", This, hwndParent, lDeviceType, lFlags, pbstrDeviceID, ppItemRoot);
+ FIXME("(%p, %p, %ld, 0x%lx, %p, %p): stub\n", This, hwndParent, lDeviceType, lFlags, pbstrDeviceID, ppItemRoot);
return E_NOTIMPL;
}
@@ -216,7 +216,7 @@ static HRESULT WINAPI wiadevmgr_SelectDeviceDlgID(IWiaDevMgr *iface, HWND hwndPa
LONG lFlags, BSTR *pbstrDeviceID)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
- FIXME("(%p, %p, %d, 0x%x, %p): stub\n", This, hwndParent, lDeviceType, lFlags, pbstrDeviceID);
+ FIXME("(%p, %p, %ld, 0x%lx, %p): stub\n", This, hwndParent, lDeviceType, lFlags, pbstrDeviceID);
return E_NOTIMPL;
}
@@ -225,7 +225,7 @@ static HRESULT WINAPI wiadevmgr_GetImageDlg(IWiaDevMgr *iface, HWND hwndParent,
BSTR bstrFilename, GUID *pguidFormat)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
- FIXME("(%p, %p, %d, 0x%x, %d, %p, %s, %s): stub\n", This, hwndParent, lDeviceType, lFlags,
+ FIXME("(%p, %p, %ld, 0x%lx, %ld, %p, %s, %s): stub\n", This, hwndParent, lDeviceType, lFlags,
lIntent, pItemRoot, debugstr_w(bstrFilename), debugstr_guid(pguidFormat));
return E_NOTIMPL;
}
@@ -235,7 +235,7 @@ static HRESULT WINAPI wiadevmgr_RegisterEventCallbackProgram(IWiaDevMgr *iface,
BSTR bstrName, BSTR bstrDescription, BSTR bstrIcon)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
- FIXME("(%p, 0x%x, %s, %s, %s, %s, %s, %s): stub\n", This, lFlags, debugstr_w(bstrDeviceID),
+ FIXME("(%p, 0x%lx, %s, %s, %s, %s, %s, %s): stub\n", This, lFlags, debugstr_w(bstrDeviceID),
debugstr_guid(pEventGUID), debugstr_w(bstrCommandline), debugstr_w(bstrName),
debugstr_w(bstrDescription), debugstr_w(bstrIcon));
return E_NOTIMPL;
@@ -246,7 +246,7 @@ static HRESULT WINAPI wiadevmgr_RegisterEventCallbackInterface(IWiaDevMgr *iface
IUnknown **pEventObject)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
- FIXME("(%p, 0x%x, %s, %s, %p, %p): stub\n", This, lFlags, debugstr_w(bstrDeviceID),
+ FIXME("(%p, 0x%lx, %s, %s, %p, %p): stub\n", This, lFlags, debugstr_w(bstrDeviceID),
debugstr_guid(pEventGUID), pIWiaEventCallback, pEventObject);
return E_NOTIMPL;
}
@@ -256,7 +256,7 @@ static HRESULT WINAPI wiadevmgr_RegisterEventCallbackCLSID(IWiaDevMgr *iface, LO
BSTR bstrDescription, BSTR bstrIcon)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
- FIXME("(%p, 0x%x, %s, %s, %s, %s, %s, %s): stub\n", This, lFlags, debugstr_w(bstrDeviceID),
+ FIXME("(%p, 0x%lx, %s, %s, %s, %s, %s, %s): stub\n", This, lFlags, debugstr_w(bstrDeviceID),
debugstr_guid(pEventGUID), debugstr_guid(pClsID), debugstr_w(bstrName),
debugstr_w(bstrDescription), debugstr_w(bstrIcon));
return E_NOTIMPL;
@@ -265,7 +265,7 @@ static HRESULT WINAPI wiadevmgr_RegisterEventCallbackCLSID(IWiaDevMgr *iface, LO
static HRESULT WINAPI wiadevmgr_AddDeviceDlg(IWiaDevMgr *iface, HWND hwndParent, LONG lFlags)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
- FIXME("(%p, %p, 0x%x): stub\n", This, hwndParent, lFlags);
+ FIXME("(%p, %p, 0x%lx): stub\n", This, hwndParent, lFlags);
return E_NOTIMPL;
}
More information about the wine-cvs
mailing list