Author: akhaldi Date: Mon Aug 22 16:32:16 2011 New Revision: 53378
URL: http://svn.reactos.org/svn/reactos?rev=53378&view=rev Log: [SHELL32] Claudiu Mihail: * Return ERROR_FILE_NOT_FOUND when a file isn't found. Similar to r53373.
Modified: branches/shell32_new-bringup/dll/win32/shell32/shlfileop.cpp
Modified: branches/shell32_new-bringup/dll/win32/shell32/shlfileop.cpp URL: http://svn.reactos.org/svn/reactos/branches/shell32_new-bringup/dll/win32/sh... ============================================================================== --- branches/shell32_new-bringup/dll/win32/shell32/shlfileop.cpp [iso-8859-1] (original) +++ branches/shell32_new-bringup/dll/win32/shell32/shlfileop.cpp [iso-8859-1] Mon Aug 22 16:32:16 2011 @@ -1130,8 +1130,12 @@ add_file_to_entry(file, szCurFile); file->attributes = GetFileAttributesW( file->szFullPath ); file->bExists = (file->attributes != INVALID_FILE_ATTRIBUTES); - if (!file->bExists) flList->bAnyDontExist = TRUE; - if (IsAttribDir(file->attributes)) flList->bAnyDirectories = TRUE; + + if (!file->bExists) + flList->bAnyDontExist = TRUE; + + if (IsAttribDir(file->attributes)) + flList->bAnyDirectories = TRUE; }
/* advance to the next string */ @@ -1457,7 +1461,7 @@ bPathExists = SHELL_DeleteDirectoryW(lpFileOp->hwnd, fileEntry->szFullPath, FALSE);
if (!bPathExists) - return ERROR_PATH_NOT_FOUND; + return ERROR_FILE_NOT_FOUND; }
return ERROR_SUCCESS;