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

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2015-10-14 00:04:59 +02:00 committed by Alexandre Julliard
parent 915bdcbdca
commit b39b37c0ae
1 changed files with 1 additions and 2 deletions

View File

@ -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;