channels/rdpdr/disk: fix stat64 references to STAT

This commit is contained in:
Marc-André Moreau 2012-03-09 12:00:56 -05:00
parent 68036eaf90
commit 51aff99ec5

View File

@ -190,14 +190,14 @@ static void disk_file_set_fullpath(DISK_FILE* file, char* fullpath)
static boolean disk_file_init(DISK_FILE* file, uint32 DesiredAccess, uint32 CreateDisposition, uint32 CreateOptions)
{
const static int mode = S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH;
struct stat64 st;
struct STAT st;
boolean exists;
#ifndef WIN32
boolean largeFile = false;
#endif
int oflag = 0;
if (stat64(file->fullpath, &st) == 0)
if (STAT(file->fullpath, &st) == 0)
{
file->is_dir = (S_ISDIR(st.st_mode) ? true : false);
#ifndef WIN32