File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33#define USVFS_VERSION_MAJOR 0
44#define USVFS_VERSION_MINOR 4
55#define USVFS_VERSION_BUILD 4
6- #define USVFS_VERSION_REVISION 7
6+ #define USVFS_VERSION_REVISION 8
77
88#define USVFS_BUILD_STRING ""
99#define USVFS_BUILD_WSTRING L""
Original file line number Diff line number Diff line change @@ -524,7 +524,10 @@ BOOL WINAPI usvfs::hook_DeleteFileW(LPCWSTR lpFileName)
524524 }
525525 POST_REALCALL
526526
527- reroute.removeMapping (READ_CONTEXT ());
527+ if (res) {
528+ reroute.removeMapping (READ_CONTEXT ());
529+ }
530+
528531 if (reroute.wasRerouted ())
529532 LOG_CALL ().PARAMWRAP (lpFileName).PARAMWRAP (reroute.fileName ()).PARAM (res).PARAM (callContext.lastError ());
530533
@@ -1137,7 +1140,10 @@ DLLEXPORT BOOL WINAPI usvfs::hook_RemoveDirectoryW(
11371140 }
11381141 POST_REALCALL
11391142
1140- reroute.removeMapping (READ_CONTEXT (), true );
1143+ if (res) {
1144+ reroute.removeMapping (READ_CONTEXT (), true );
1145+ }
1146+
11411147 if (reroute.wasRerouted ())
11421148 LOG_CALL ().PARAMWRAP (lpPathName).PARAMWRAP (reroute.fileName ()).PARAM (res).PARAM (callContext.lastError ());
11431149
You can’t perform that action at this time.
0 commit comments