Re: [PATCH v21 0/6] MR1148: ntdll: Mark created files beginning with a dot as not hidden.
28 Mar
2023
28 Mar
'23
7:15 p.m.
Matteo Bruni (@Mystral) commented about dlls/ntdll/tests/file.c:
+{ + FILE_RENAME_INFORMATION *fri; + UNICODE_STRING ntpath; + IO_STATUS_BLOCK io; + NTSTATUS status; + BOOLEAN ret; + ULONG size; + + ret = pRtlDosPathNameToNtPathName_U( filename, &ntpath, NULL, NULL ); + lok( ret, "RtlDosPathNameToNtPathName_U failed\n" ); + 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; Same here for this HeapAlloc() call with very small size.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1148#note_28243
1073
Age (days ago)
1073
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matteo Bruni (@Mystral)