mirror of
https://github.com/reactos/reactos.git
synced 2025-06-20 07:36:05 +00:00
Replace ERR() by WARN() on error codes which can be normal
svn path=/trunk/; revision=33584
This commit is contained in:
parent
744f5df30f
commit
8163d0f36b
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue