From 58bd356aa3bda78845f5ca5c34a2f841edc95714 Mon Sep 17 00:00:00 2001 From: nastys <@> Date: Fri, 2 Aug 2019 23:53:50 +0200 Subject: [PATCH] Remove unnecessary stubs --- source-code/source/PD-Loader/framework.h | 8 ++++---- source-code/source/fakedll/framework.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source-code/source/PD-Loader/framework.h b/source-code/source/PD-Loader/framework.h index bfd3b3c..d0c18f4 100644 --- a/source-code/source/PD-Loader/framework.h +++ b/source-code/source/PD-Loader/framework.h @@ -59,7 +59,7 @@ struct dnsapi_dll { return 9004; // DNS_ERROR_RCODE_NOT_IMPLEMENTED } - static LONG WINAPI DnsDhcpRegisterTermStub() + /*static LONG WINAPI DnsDhcpRegisterTermStub() { return 9004; // DNS_ERROR_RCODE_NOT_IMPLEMENTED } @@ -86,7 +86,7 @@ struct dnsapi_dll static LONG WINAPI DnsDhcpRegisterAddrsStub() { return 9004; // DNS_ERROR_RCODE_NOT_IMPLEMENTED - } + }*/ void LoadOriginalLibrary(HMODULE module) { @@ -109,13 +109,13 @@ struct dnsapi_dll // Thanks to somewhatlurker if (DnsQueryEx == NULL) { DnsQueryEx = (FARPROC)& DnsQueryExStub; }; if (DnsCancelQuery == NULL) { DnsCancelQuery = (FARPROC)& DnsCancelQueryStub; }; - if (DnsDhcpRegisterTerm == NULL) { DnsDhcpRegisterTerm = (FARPROC)& DnsDhcpRegisterTermStub; }; + /*if (DnsDhcpRegisterTerm == NULL) { DnsDhcpRegisterTerm = (FARPROC)& DnsDhcpRegisterTermStub; }; if (DnsNotifyResolver == NULL) { DnsNotifyResolver = (FARPROC)& DnsNotifyResolverStub; }; if (DnsDhcpRegisterHostAddrs == NULL) { DnsDhcpRegisterHostAddrs = (FARPROC)& DnsDhcpRegisterHostAddrsStub; }; if (DnsQueryConfigDword == NULL) { DnsQueryConfigDword = (FARPROC)& DnsQueryConfigDwordStub; }; if (DnsDhcpRemoveRegistrations == NULL) { DnsDhcpRemoveRegistrations = (FARPROC)& DnsDhcpRemoveRegistrationsStub; }; if (DnsDhcpRegisterInit == NULL) { DnsDhcpRegisterInit = (FARPROC)& DnsDhcpRegisterInitStub; }; - if (DnsDhcpRegisterAddrs == NULL) { DnsDhcpRegisterAddrs = (FARPROC)& DnsDhcpRegisterAddrsStub; }; + if (DnsDhcpRegisterAddrs == NULL) { DnsDhcpRegisterAddrs = (FARPROC)& DnsDhcpRegisterAddrsStub; };*/ } } dnsapi; diff --git a/source-code/source/fakedll/framework.h b/source-code/source/fakedll/framework.h index bfd3b3c..d0c18f4 100644 --- a/source-code/source/fakedll/framework.h +++ b/source-code/source/fakedll/framework.h @@ -59,7 +59,7 @@ struct dnsapi_dll { return 9004; // DNS_ERROR_RCODE_NOT_IMPLEMENTED } - static LONG WINAPI DnsDhcpRegisterTermStub() + /*static LONG WINAPI DnsDhcpRegisterTermStub() { return 9004; // DNS_ERROR_RCODE_NOT_IMPLEMENTED } @@ -86,7 +86,7 @@ struct dnsapi_dll static LONG WINAPI DnsDhcpRegisterAddrsStub() { return 9004; // DNS_ERROR_RCODE_NOT_IMPLEMENTED - } + }*/ void LoadOriginalLibrary(HMODULE module) { @@ -109,13 +109,13 @@ struct dnsapi_dll // Thanks to somewhatlurker if (DnsQueryEx == NULL) { DnsQueryEx = (FARPROC)& DnsQueryExStub; }; if (DnsCancelQuery == NULL) { DnsCancelQuery = (FARPROC)& DnsCancelQueryStub; }; - if (DnsDhcpRegisterTerm == NULL) { DnsDhcpRegisterTerm = (FARPROC)& DnsDhcpRegisterTermStub; }; + /*if (DnsDhcpRegisterTerm == NULL) { DnsDhcpRegisterTerm = (FARPROC)& DnsDhcpRegisterTermStub; }; if (DnsNotifyResolver == NULL) { DnsNotifyResolver = (FARPROC)& DnsNotifyResolverStub; }; if (DnsDhcpRegisterHostAddrs == NULL) { DnsDhcpRegisterHostAddrs = (FARPROC)& DnsDhcpRegisterHostAddrsStub; }; if (DnsQueryConfigDword == NULL) { DnsQueryConfigDword = (FARPROC)& DnsQueryConfigDwordStub; }; if (DnsDhcpRemoveRegistrations == NULL) { DnsDhcpRemoveRegistrations = (FARPROC)& DnsDhcpRemoveRegistrationsStub; }; if (DnsDhcpRegisterInit == NULL) { DnsDhcpRegisterInit = (FARPROC)& DnsDhcpRegisterInitStub; }; - if (DnsDhcpRegisterAddrs == NULL) { DnsDhcpRegisterAddrs = (FARPROC)& DnsDhcpRegisterAddrsStub; }; + if (DnsDhcpRegisterAddrs == NULL) { DnsDhcpRegisterAddrs = (FARPROC)& DnsDhcpRegisterAddrsStub; };*/ } } dnsapi;