Guest User

Untitled

a guest
Oct 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. Index: shlfileop.cpp
  2. ===================================================================
  3. --- shlfileop.cpp (revision 53374)
  4. +++ shlfileop.cpp (working copy)
  5. @@ -1130,8 +1130,12 @@
  6. add_file_to_entry(file, szCurFile);
  7. file->attributes = GetFileAttributesW( file->szFullPath );
  8. file->bExists = (file->attributes != INVALID_FILE_ATTRIBUTES);
  9. - if (!file->bExists) flList->bAnyDontExist = TRUE;
  10. - if (IsAttribDir(file->attributes)) flList->bAnyDirectories = TRUE;
  11. +
  12. + if (!file->bExists)
  13. + flList->bAnyDontExist = TRUE;
  14. +
  15. + if (IsAttribDir(file->attributes))
  16. + flList->bAnyDirectories = TRUE;
  17. }
  18.  
  19. /* advance to the next string */
  20. @@ -1457,7 +1461,7 @@
  21. bPathExists = SHELL_DeleteDirectoryW(lpFileOp->hwnd, fileEntry->szFullPath, FALSE);
  22.  
  23. if (!bPathExists)
  24. - return ERROR_PATH_NOT_FOUND;
  25. + return ERROR_FILE_NOT_FOUND;
  26. }
  27.  
  28. return ERROR_SUCCESS;
Add Comment
Please, Sign In to add comment