dnsapi: Win64 printf format warning fixes.
This commit is contained in:
parent
3c60ce8525
commit
4e3b3debef
|
@ -6,7 +6,6 @@ MODULE = dnsapi.dll
|
||||||
IMPORTLIB = libdnsapi.$(IMPLIBEXT)
|
IMPORTLIB = libdnsapi.$(IMPLIBEXT)
|
||||||
IMPORTS = netapi32 kernel32
|
IMPORTS = netapi32 kernel32
|
||||||
EXTRALIBS = @RESOLVLIBS@
|
EXTRALIBS = @RESOLVLIBS@
|
||||||
EXTRADEFS = -DWINE_NO_LONG_AS_INT
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
main.c \
|
main.c \
|
||||||
|
|
|
@ -34,7 +34,7 @@ HINSTANCE hdnsapi;
|
||||||
|
|
||||||
BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
|
BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
|
||||||
{
|
{
|
||||||
TRACE( "(%p, %ld, %p)\n", hinst, reason, reserved );
|
TRACE( "(%p, %d, %p)\n", hinst, reason, reserved );
|
||||||
|
|
||||||
switch (reason)
|
switch (reason)
|
||||||
{
|
{
|
||||||
|
@ -57,7 +57,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
|
||||||
DNS_STATUS WINAPI DnsAcquireContextHandle_A( DWORD flags, PVOID cred,
|
DNS_STATUS WINAPI DnsAcquireContextHandle_A( DWORD flags, PVOID cred,
|
||||||
HANDLE *context )
|
HANDLE *context )
|
||||||
{
|
{
|
||||||
FIXME( "(0x%08lx,%p,%p) stub\n", flags, cred, context );
|
FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
|
||||||
|
|
||||||
*context = (HANDLE)0xdeadbeef;
|
*context = (HANDLE)0xdeadbeef;
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
|
@ -70,7 +70,7 @@ DNS_STATUS WINAPI DnsAcquireContextHandle_A( DWORD flags, PVOID cred,
|
||||||
DNS_STATUS WINAPI DnsAcquireContextHandle_UTF8( DWORD flags, PVOID cred,
|
DNS_STATUS WINAPI DnsAcquireContextHandle_UTF8( DWORD flags, PVOID cred,
|
||||||
HANDLE *context )
|
HANDLE *context )
|
||||||
{
|
{
|
||||||
FIXME( "(0x%08lx,%p,%p) stub\n", flags, cred, context );
|
FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
|
||||||
|
|
||||||
*context = (HANDLE)0xdeadbeef;
|
*context = (HANDLE)0xdeadbeef;
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
|
@ -83,7 +83,7 @@ DNS_STATUS WINAPI DnsAcquireContextHandle_UTF8( DWORD flags, PVOID cred,
|
||||||
DNS_STATUS WINAPI DnsAcquireContextHandle_W( DWORD flags, PVOID cred,
|
DNS_STATUS WINAPI DnsAcquireContextHandle_W( DWORD flags, PVOID cred,
|
||||||
HANDLE *context )
|
HANDLE *context )
|
||||||
{
|
{
|
||||||
FIXME( "(0x%08lx,%p,%p) stub\n", flags, cred, context );
|
FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
|
||||||
|
|
||||||
*context = (HANDLE)0xdeadbeef;
|
*context = (HANDLE)0xdeadbeef;
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
|
@ -132,7 +132,7 @@ DNS_STATUS WINAPI DnsModifyRecordsInSet_A( PDNS_RECORDA add, PDNS_RECORDA delete
|
||||||
DWORD options, HANDLE context,
|
DWORD options, HANDLE context,
|
||||||
PIP4_ARRAY servers, PVOID reserved )
|
PIP4_ARRAY servers, PVOID reserved )
|
||||||
{
|
{
|
||||||
FIXME( "(%p,%p,0x%08lx,%p,%p,%p) stub\n", add, delete, options,
|
FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
|
||||||
context, servers, reserved );
|
context, servers, reserved );
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ DNS_STATUS WINAPI DnsModifyRecordsInSet_UTF8( PDNS_RECORDA add, PDNS_RECORDA del
|
||||||
DWORD options, HANDLE context,
|
DWORD options, HANDLE context,
|
||||||
PIP4_ARRAY servers, PVOID reserved )
|
PIP4_ARRAY servers, PVOID reserved )
|
||||||
{
|
{
|
||||||
FIXME( "(%p,%p,0x%08lx,%p,%p,%p) stub\n", add, delete, options,
|
FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
|
||||||
context, servers, reserved );
|
context, servers, reserved );
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -158,7 +158,7 @@ DNS_STATUS WINAPI DnsModifyRecordsInSet_W( PDNS_RECORDW add, PDNS_RECORDW delete
|
||||||
DWORD options, HANDLE context,
|
DWORD options, HANDLE context,
|
||||||
PIP4_ARRAY servers, PVOID reserved )
|
PIP4_ARRAY servers, PVOID reserved )
|
||||||
{
|
{
|
||||||
FIXME( "(%p,%p,0x%08lx,%p,%p,%p) stub\n", add, delete, options,
|
FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
|
||||||
context, servers, reserved );
|
context, servers, reserved );
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -184,7 +184,7 @@ DNS_STATUS WINAPI DnsReplaceRecordSetA( PDNS_RECORDA set, DWORD options,
|
||||||
HANDLE context, PIP4_ARRAY servers,
|
HANDLE context, PIP4_ARRAY servers,
|
||||||
PVOID reserved )
|
PVOID reserved )
|
||||||
{
|
{
|
||||||
FIXME( "(%p,0x%08lx,%p,%p,%p) stub\n", set, options, context,
|
FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
|
||||||
servers, reserved );
|
servers, reserved );
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -197,7 +197,7 @@ DNS_STATUS WINAPI DnsReplaceRecordSetUTF8( PDNS_RECORDA set, DWORD options,
|
||||||
HANDLE context, PIP4_ARRAY servers,
|
HANDLE context, PIP4_ARRAY servers,
|
||||||
PVOID reserved )
|
PVOID reserved )
|
||||||
{
|
{
|
||||||
FIXME( "(%p,0x%08lx,%p,%p,%p) stub\n", set, options, context,
|
FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
|
||||||
servers, reserved );
|
servers, reserved );
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -210,7 +210,7 @@ DNS_STATUS WINAPI DnsReplaceRecordSetW( PDNS_RECORDW set, DWORD options,
|
||||||
HANDLE context, PIP4_ARRAY servers,
|
HANDLE context, PIP4_ARRAY servers,
|
||||||
PVOID reserved )
|
PVOID reserved )
|
||||||
{
|
{
|
||||||
FIXME( "(%p,0x%08lx,%p,%p,%p) stub\n", set, options, context,
|
FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
|
||||||
servers, reserved );
|
servers, reserved );
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -554,7 +554,7 @@ static DNS_STATUS dns_set_serverlist( PIP4_ARRAY addrs )
|
||||||
|
|
||||||
if (addrs->AddrCount > MAXNS)
|
if (addrs->AddrCount > MAXNS)
|
||||||
{
|
{
|
||||||
WARN( "too many servers: %ld only using the first: %d\n",
|
WARN( "too many servers: %d only using the first: %d\n",
|
||||||
addrs->AddrCount, MAXNS );
|
addrs->AddrCount, MAXNS );
|
||||||
_res.nscount = MAXNS;
|
_res.nscount = MAXNS;
|
||||||
}
|
}
|
||||||
|
@ -656,7 +656,7 @@ DNS_STATUS WINAPI DnsQuery_A( PCSTR name, WORD type, DWORD options, PIP4_ARRAY s
|
||||||
DNS_RECORDW *resultW;
|
DNS_RECORDW *resultW;
|
||||||
DNS_STATUS status;
|
DNS_STATUS status;
|
||||||
|
|
||||||
TRACE( "(%s,%s,0x%08lx,%p,%p,%p)\n", debugstr_a(name), dns_type_to_str( type ),
|
TRACE( "(%s,%s,0x%08x,%p,%p,%p)\n", debugstr_a(name), dns_type_to_str( type ),
|
||||||
options, servers, result, reserved );
|
options, servers, result, reserved );
|
||||||
|
|
||||||
if (!name || !result)
|
if (!name || !result)
|
||||||
|
@ -690,7 +690,7 @@ DNS_STATUS WINAPI DnsQuery_UTF8( PCSTR name, WORD type, DWORD options, PIP4_ARRA
|
||||||
DNS_STATUS ret = DNS_ERROR_RCODE_NOT_IMPLEMENTED;
|
DNS_STATUS ret = DNS_ERROR_RCODE_NOT_IMPLEMENTED;
|
||||||
#ifdef HAVE_RESOLV
|
#ifdef HAVE_RESOLV
|
||||||
|
|
||||||
TRACE( "(%s,%s,0x%08lx,%p,%p,%p)\n", debugstr_a(name), dns_type_to_str( type ),
|
TRACE( "(%s,%s,0x%08x,%p,%p,%p)\n", debugstr_a(name), dns_type_to_str( type ),
|
||||||
options, servers, result, reserved );
|
options, servers, result, reserved );
|
||||||
|
|
||||||
if (!name || !result)
|
if (!name || !result)
|
||||||
|
@ -733,7 +733,7 @@ DNS_STATUS WINAPI DnsQuery_W( PCWSTR name, WORD type, DWORD options, PIP4_ARRAY
|
||||||
DNS_RECORDA *resultA;
|
DNS_RECORDA *resultA;
|
||||||
DNS_STATUS status;
|
DNS_STATUS status;
|
||||||
|
|
||||||
TRACE( "(%s,%s,0x%08lx,%p,%p,%p)\n", debugstr_w(name), dns_type_to_str( type ),
|
TRACE( "(%s,%s,0x%08x,%p,%p,%p)\n", debugstr_w(name), dns_type_to_str( type ),
|
||||||
options, servers, result, reserved );
|
options, servers, result, reserved );
|
||||||
|
|
||||||
if (!name || !result)
|
if (!name || !result)
|
||||||
|
@ -804,7 +804,7 @@ DNS_STATUS WINAPI DnsQueryConfig( DNS_CONFIG_TYPE config, DWORD flag, PWSTR adap
|
||||||
{
|
{
|
||||||
DNS_STATUS ret = ERROR_INVALID_PARAMETER;
|
DNS_STATUS ret = ERROR_INVALID_PARAMETER;
|
||||||
|
|
||||||
TRACE( "(%d,0x%08lx,%s,%p,%p,%p)\n", config, flag, debugstr_w(adapter),
|
TRACE( "(%d,0x%08x,%s,%p,%p,%p)\n", config, flag, debugstr_w(adapter),
|
||||||
reserved, buffer, len );
|
reserved, buffer, len );
|
||||||
|
|
||||||
if (!len) return ERROR_INVALID_PARAMETER;
|
if (!len) return ERROR_INVALID_PARAMETER;
|
||||||
|
|
Loading…
Reference in New Issue