summaryrefslogtreecommitdiff
path: root/src/ntfsx.c
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2004-04-03 22:13:01 +0000
committerStef Walter <stef@thewalter.net>2004-04-03 22:13:01 +0000
commitbec23685136f78a24a78a6d8840d3865ffbccea9 (patch)
tree1453e0c5f87bb689a3df9c8e524d05d65bcca657 /src/ntfsx.c
parent3eca787a2b83ff8cf60d2be9e588d4a558b85a85 (diff)
Unix porting.
Diffstat (limited to 'src/ntfsx.c')
-rw-r--r--src/ntfsx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ntfsx.c b/src/ntfsx.c
index 5d9a526..35f1c23 100644
--- a/src/ntfsx.c
+++ b/src/ntfsx.c
@@ -144,7 +144,7 @@ bool ntfsx_cluster_read(ntfsx_cluster* clus, partitioninfo* info, uint64 begSect
}
pos = SECTOR_TO_BYTES(begSector);
- if(_lseeki64(dd, pos, SEEK_SET) == -1)
+ if(lseek64(dd, pos, SEEK_SET) == -1)
return false;
sz = read(dd, clus->data, clus->size);
@@ -316,7 +316,7 @@ ntfsx_attribute* ntfsx_record_findattribute(ntfsx_record* record, uint32 attrTyp
if(atlr->type == attrType)
{
/* Read in appropriate cluster */
- mftRecord = ntfsx_mftmap_sectorforindex(record->info->mftmap, atlr->refAttrib & 0xFFFFFFFFFFFF);
+ mftRecord = ntfsx_mftmap_sectorforindex(record->info->mftmap, atlr->refAttrib & 0xFFFFFFFFFFFFLL);
r2 = ntfsx_record_alloc(record->info);
if(!r2)