File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -4293,9 +4293,6 @@ NTSTATUS PhSetFileBasicInformation(
4293
4293
{
4294
4294
IO_STATUS_BLOCK isb ;
4295
4295
4296
- // Set to SIZE_MAX to ignore updating the value (dmex)
4297
- BasicInfo -> LastWriteTime .QuadPart = SIZE_MAX ;
4298
-
4299
4296
return NtSetInformationFile (
4300
4297
FileHandle ,
4301
4298
& isb ,
@@ -9307,14 +9304,14 @@ NTSTATUS PhDosLongPathNameToNtPathNameWithStatus(
9307
9304
static NTSTATUS (NTAPI * RtlDosLongPathNameToNtPathName_I_WithStatus )(
9308
9305
_In_ PCWSTR DosFileName ,
9309
9306
_Out_ PUNICODE_STRING NtFileName ,
9310
- _Out_opt_ PWSTR * FilePart ,
9307
+ _Out_opt_ PWSTR * FilePart ,
9311
9308
_Out_opt_ PRTL_RELATIVE_NAME_U RelativeName
9312
9309
) = NULL ;
9313
9310
NTSTATUS status ;
9314
9311
9315
9312
if (PhBeginInitOnce (& initOnce ))
9316
9313
{
9317
- if (WindowsVersion >= WINDOWS_10_RS1 ) // RtlAreLongPathsEnabled() // always true
9314
+ if (WindowsVersion >= WINDOWS_10_RS1 && NtCurrentPeb () -> IsLongPathAwareProcess ) // RtlAreLongPathsEnabled()
9318
9315
{
9319
9316
PVOID baseAddress ;
9320
9317
You can’t perform that action at this time.
0 commit comments