Replace ERR() by WARN() on error codes which can be normal

svn path=/trunk/; revision=33584
This commit is contained in:
Hervé Poussineau 2008-05-18 15:26:24 +00:00
parent 744f5df30f
commit 8163d0f36b

View file

@ -1424,7 +1424,10 @@ OpenServiceW(SC_HANDLE hSCManager,
(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 @@ QueryServiceConfigW(SC_HANDLE hService,
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;
}