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) ...@@ -87,8 +87,7 @@ static HRESULT create_directory(const WCHAR *path)
WCHAR *slash; WCHAR *slash;
DWORD last_error = GetLastError(); DWORD last_error = GetLastError();
if (last_error == ERROR_ALREADY_EXISTS || last_error != ERROR_PATH_NOT_FOUND || if (last_error != ERROR_PATH_NOT_FOUND || !(slash = strrchrW(new_path, '\\')))
!(slash = strrchrW(new_path, '\\')))
{ {
hr = HRESULT_FROM_WIN32(last_error); hr = HRESULT_FROM_WIN32(last_error);
break; 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