[SVCHOST]

- Don't print "GetProcAddress failed" error for optional functions

svn path=/trunk/; revision=75920
This commit is contained in:
Thomas Faber 2017-09-22 07:17:20 +00:00
parent 05fa2e9b51
commit d40669cdad

View file

@ -701,10 +701,10 @@ GetServiceDllFunction (
/* 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,