Index: base/system/services/rpcserver.c =================================================================== --- base/system/services/rpcserver.c (révision 56737) +++ base/system/services/rpcserver.c (copie de travail) @@ -5001,7 +5001,7 @@ } /* Now we can fill the buffer */ - if (dwType == REG_BINARY) + if (dwError != ERROR_FILE_NOT_FOUND && dwType == REG_BINARY) { dwError = RegQueryValueExW(hServiceKey, L"FailureActions", @@ -5017,7 +5017,11 @@ } else { - dwError = ERROR_UNSUPPORTED_TYPE; + /* + * The value of the error doesn't really matter, the only + * important thing is that it must be != ERROR_SUCCESS . + */ + dwError = ERROR_INVALID_DATA; } if (dwError == ERROR_SUCCESS) @@ -5225,7 +5229,7 @@ } /* Now we can fill the buffer */ - if (dwType == REG_BINARY) + if (dwError != ERROR_FILE_NOT_FOUND && dwType == REG_BINARY) { dwError = RegQueryValueExW(hServiceKey, L"FailureActions", @@ -5241,7 +5245,11 @@ } else { - dwError = ERROR_UNSUPPORTED_TYPE; + /* + * The value of the error doesn't really matter, the only + * important thing is that it must be != ERROR_SUCCESS . + */ + dwError = ERROR_INVALID_DATA; } if (dwError == ERROR_SUCCESS)