netcfgx: 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-16 08:11:10 +01:00 committed by Alexandre Julliard
parent 29b016da95
commit 4f308b2b04
3 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = netcfgx.dll MODULE = netcfgx.dll
IMPORTS = uuid IMPORTS = uuid

View File

@ -98,7 +98,7 @@ static HRESULT WINAPI netcfgcf_CreateInstance(IClassFactory *iface,LPUNKNOWN pOu
} }
else else
{ {
WARN("Cannot create an instance object. 0x%08x\n", hr); WARN("Cannot create an instance object. 0x%08lx\n", hr);
} }
return hr; return hr;
} }

View File

@ -75,7 +75,7 @@ static ULONG WINAPI netcfg_AddRef(INetCfg *iface)
NetConfiguration *This = impl_from_INetCfg(iface); NetConfiguration *This = impl_from_INetCfg(iface);
ULONG ref = InterlockedIncrement(&This->ref); ULONG ref = InterlockedIncrement(&This->ref);
TRACE("%p ref=%u\n", This, ref); TRACE("%p ref=%lu\n", This, ref);
return ref; return ref;
} }
@ -85,7 +85,7 @@ static ULONG WINAPI netcfg_Release(INetCfg *iface)
NetConfiguration *This = impl_from_INetCfg(iface); NetConfiguration *This = impl_from_INetCfg(iface);
ULONG ref = InterlockedDecrement(&This->ref); ULONG ref = InterlockedDecrement(&This->ref);
TRACE("%p ref=%u\n", This, ref); TRACE("%p ref=%lu\n", This, ref);
if (ref == 0) if (ref == 0)
{ {
@ -190,7 +190,7 @@ static HRESULT WINAPI netcfglock_AcquireWriteLock(INetCfgLock *iface, DWORD cmsT
LPCWSTR pszwClientDescription, LPWSTR *ppszwClientDescription) LPCWSTR pszwClientDescription, LPWSTR *ppszwClientDescription)
{ {
NetConfiguration *This = impl_from_INetCfgLock(iface); NetConfiguration *This = impl_from_INetCfgLock(iface);
FIXME("%p %d %s %p\n", This, cmsTimeout, debugstr_w(pszwClientDescription), ppszwClientDescription); FIXME("%p %ld %s %p\n", This, cmsTimeout, debugstr_w(pszwClientDescription), ppszwClientDescription);
return S_OK; return S_OK;
} }