Re: [PATCH v21 0/6] MR1148: ntdll: Mark created files beginning with a dot as not hidden.
Matteo Bruni (@Mystral) commented about dlls/ntdll/tests/file.c:
+ if (!ret) return FALSE; + + size = offsetof( FILE_RENAME_INFORMATION, FileName ) + ntpath.Length; + fri = HeapAlloc( GetProcessHeap(), 0, size ); + lok( fri != NULL, "HeapAlloc failed\n" ); + if (!fri) return FALSE; + fri->ReplaceIfExists = TRUE; + fri->RootDirectory = NULL; + fri->FileNameLength = ntpath.Length; + memcpy( fri->FileName, ntpath.Buffer, ntpath.Length ); + pRtlFreeUnicodeString( &ntpath ); + + status = pNtSetInformationFile( h, &io, fri, size, FileRenameInformation ); + HeapFree( GetProcessHeap(), 0, fri ); + lok( status == STATUS_SUCCESS, "got %#lx\n", status ); + return status == STATUS_SUCCESS; Let's get rid of the return and make the function void.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1148#note_28245
participants (1)
-
Matteo Bruni (@Mystral)