mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Read from QuadPart from LARGE_INTEGER variables.
This commit is contained in:
committed by
akallabeth
parent
d76c8470b1
commit
4c9754b269
@@ -1329,16 +1329,16 @@ static UINT rdpdr_server_read_file_directory_information(wStream* s,
|
||||
return ERROR_INVALID_DATA;
|
||||
}
|
||||
|
||||
Stream_Read_UINT32(s, fdi->NextEntryOffset); /* NextEntryOffset (4 bytes) */
|
||||
Stream_Read_UINT32(s, fdi->FileIndex); /* FileIndex (4 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->CreationTime); /* CreationTime (8 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->LastAccessTime); /* LastAccessTime (8 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->LastWriteTime); /* LastWriteTime (8 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->ChangeTime); /* ChangeTime (8 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->EndOfFile); /* EndOfFile (8 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->AllocationSize); /* AllocationSize (8 bytes) */
|
||||
Stream_Read_UINT32(s, fdi->FileAttributes); /* FileAttributes (4 bytes) */
|
||||
Stream_Read_UINT32(s, fileNameLength); /* FileNameLength (4 bytes) */
|
||||
Stream_Read_UINT32(s, fdi->NextEntryOffset); /* NextEntryOffset (4 bytes) */
|
||||
Stream_Read_UINT32(s, fdi->FileIndex); /* FileIndex (4 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->CreationTime.QuadPart); /* CreationTime (8 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->LastAccessTime.QuadPart); /* LastAccessTime (8 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->LastWriteTime.QuadPart); /* LastWriteTime (8 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->ChangeTime.QuadPart); /* ChangeTime (8 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->EndOfFile.QuadPart); /* EndOfFile (8 bytes) */
|
||||
Stream_Read_UINT64(s, fdi->AllocationSize.QuadPart); /* AllocationSize (8 bytes) */
|
||||
Stream_Read_UINT32(s, fdi->FileAttributes); /* FileAttributes (4 bytes) */
|
||||
Stream_Read_UINT32(s, fileNameLength); /* FileNameLength (4 bytes) */
|
||||
|
||||
if (Stream_GetRemainingLength(s) < fileNameLength)
|
||||
{
|
||||
|
||||
@@ -40,12 +40,12 @@ struct _FILE_DIRECTORY_INFORMATION
|
||||
{
|
||||
UINT32 NextEntryOffset;
|
||||
UINT32 FileIndex;
|
||||
UINT64 CreationTime;
|
||||
UINT64 LastAccessTime;
|
||||
UINT64 LastWriteTime;
|
||||
UINT64 ChangeTime;
|
||||
UINT64 EndOfFile;
|
||||
UINT64 AllocationSize;
|
||||
LARGE_INTEGER CreationTime;
|
||||
LARGE_INTEGER LastAccessTime;
|
||||
LARGE_INTEGER LastWriteTime;
|
||||
LARGE_INTEGER ChangeTime;
|
||||
LARGE_INTEGER EndOfFile;
|
||||
LARGE_INTEGER AllocationSize;
|
||||
UINT32 FileAttributes;
|
||||
char FileName[512];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user