Chameleon

Chameleon Commit Details

Date:2010-08-19 05:50:48 (9 years 3 months ago)
Author:Daniel Miranda
Commit:390
Parents: 389
Message:Changed NTFS UUID used to match what you get on Windows
Changes:
M/branches/danielkza/i386/libsaio/ntfs.c

File differences

branches/danielkza/i386/libsaio/ntfs.c
301301
302302
303303
304
304
305305
306306
307307
......
320320
321321
322322
323
323
324324
325325
326
326
327
328
329
330
327331
328332
329333
struct bootfile *boot;
void *buf = malloc(MAX_BLOCK_SIZE);
if (!buf)
if ( !buf )
return -1;
/*
return -1;
// Check for non-null volume serial number
if(!boot->bf_volsn)
if( !boot->bf_volsn )
return -1;
return CreateUUIDString((uint8_t*)&(boot->bf_volsn), sizeof(boot->bf_volsn), uuidStr);
// Use UUID like the one you get on Windows
return sprintf(uuidStr, "%04X-%04X", (unsigned short)(boot->bf_volsn >> 16) & 0xFFFF,
(unsigned short)boot->bf_volsn & 0xFFFF);
// return CreateUUIDString((uint8_t*)&(boot->bf_volsn), sizeof(boot->bf_volsn), uuidStr);
}
bool NTFSProbe(const void * buffer)

Archive Download the corresponding diff file

Revision: 390