mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[SVCHOST]
- Don't print "GetProcAddress failed" error for optional functions svn path=/trunk/; revision=75920
This commit is contained in:
parent
05fa2e9b51
commit
d40669cdad
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue