Author: tfaber
Date: Fri Sep 22 07:17:20 2017
New Revision: 75920
URL:
http://svn.reactos.org/svn/reactos?rev=75920&view=rev
Log:
[SVCHOST]
- Don't print "GetProcAddress failed" error for optional functions
Modified:
trunk/reactos/base/services/svchost/svchost.c
Modified: trunk/reactos/base/services/svchost/svchost.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/svchost/svch…
==============================================================================
--- trunk/reactos/base/services/svchost/svchost.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/svchost/svchost.c [iso-8859-1] Fri Sep 22 07:17:20 2017
@@ -701,10 +701,10 @@
/* Next, get the address being looked up*/
lpAddress = GetProcAddress(hModule, lpProcName);
- if (!lpAddress)
+ if (!lpAddress && lpdwError)
{
/* We couldn't find it, write the error code and a debug statement */
- if (lpdwError) *lpdwError = GetLastError();
+ *lpdwError = GetLastError();
DBG_ERR("GetProcAddress (%s) failed on DLL %ws. Error %d.\n",
lpProcName,
pDll->pszDllPath,