mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-29 14:02:55 -05:00
tst: winfsp-tests: --external tests done within a temporary directory
This commit is contained in:
@@ -332,3 +332,17 @@ BOOL WINAPI HookSetVolumeLabelW(
|
||||
MaybeAdjustTraversePrivilege(TRUE);
|
||||
return Success;
|
||||
}
|
||||
|
||||
BOOL WINAPI HookSetCurrentDirectoryW(
|
||||
LPCWSTR lpPathName)
|
||||
{
|
||||
WCHAR FileNameBuf[FILENAMEBUF_SIZE];
|
||||
BOOL Success;
|
||||
|
||||
PrepareFileName(lpPathName, FileNameBuf);
|
||||
|
||||
MaybeAdjustTraversePrivilege(FALSE);
|
||||
Success = SetCurrentDirectoryW(FileNameBuf);
|
||||
MaybeAdjustTraversePrivilege(TRUE);
|
||||
return Success;
|
||||
}
|
||||
|
Reference in New Issue
Block a user