Commit b39b37c0 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

schedsvc: Simplify an if-condition (PVS-Studio).

parent 915bdcbd
......@@ -87,8 +87,7 @@ static HRESULT create_directory(const WCHAR *path)
WCHAR *slash;
DWORD last_error = GetLastError();
if (last_error == ERROR_ALREADY_EXISTS || last_error != ERROR_PATH_NOT_FOUND ||
!(slash = strrchrW(new_path, '\\')))
if (last_error != ERROR_PATH_NOT_FOUND || !(slash = strrchrW(new_path, '\\')))
{
hr = HRESULT_FROM_WIN32(last_error);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment