View Single Post
Old 10-26-2003, 01:22 PM  
darkone
Disabled
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

if (lpFindData->nFileSizeHigh <= 0)
{
// Filesize <= 32bits
Put_Buffer_Format((LPBUFFER)lpContext, "-%.9s 0 %-12.12s %-12.12s %8i %s %02d %02d:%02d %s\r\n",
pBuffer, szUserName, szGroupName,
lpFindData->nFileSizeLow,
Months[SystemTime.wMonth], SystemTime.wDay, SystemTime.wHour, SystemTime.wMinute,
lpFindData->cFileName);
}
else
{
// Filesize > 32bits
Put_Buffer_Format((LPBUFFER)lpContext, "-%.9s 0 %-12.12s %-12.12s %8I64i %s %02d %02d:%02d %s\r\n",
pBuffer, szUserName, szGroupName,
lpFindData->nFileSizeHigh * (0x100000000) + lpFindData->nFileSizeLow,
Months[SystemTime.wMonth], SystemTime.wDay, SystemTime.wHour, SystemTime.wMinute,
lpFindData->cFileName);
}

I really can't understand how that would result to negative value :\ (should only happend if loworder part of filesize is negative & highorder part is non-positive)
darkone is offline   Reply With Quote