Author: hpoussin
Date: Sun May 18 10:26:24 2008
New Revision: 33584
URL:
http://svn.reactos.org/svn/reactos?rev=33584&view=rev
Log:
Replace ERR() by WARN() on error codes which can be normal
Modified:
trunk/reactos/dll/win32/advapi32/service/scm.c
Modified: trunk/reactos/dll/win32/advapi32/service/scm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/service…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/service/scm.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/service/scm.c [iso-8859-1] Sun May 18 10:26:24 2008
@@ -1424,7 +1424,10 @@
(SC_RPC_HANDLE *)&hService);
if (dwError != ERROR_SUCCESS)
{
- ERR("ROpenServiceW() failed (Error %lu)\n", dwError);
+ if (dwError == ERROR_SERVICE_DOES_NOT_EXIST)
+ WARN("ROpenServiceW() failed (Error %lu)\n", dwError);
+ else
+ ERR("ROpenServiceW() failed (Error %lu)\n", dwError);
SetLastError(dwError);
return NULL;
}
@@ -1524,7 +1527,10 @@
pcbBytesNeeded);
if (dwError != ERROR_SUCCESS)
{
- ERR("RQueryServiceConfigW() failed (Error %lu)\n", dwError);
+ if (dwError == ERROR_INSUFFICIENT_BUFFER)
+ WARN("RQueryServiceConfigW() failed (Error %lu)\n", dwError);
+ else
+ ERR("RQueryServiceConfigW() failed (Error %lu)\n", dwError);
SetLastError(dwError);
return FALSE;
}