mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
o fix magicNTFS defenition
o remove NTFS_SB_MAGIC because it is unusefull o rename magicNTFS -> NTFS_SB_MAGIC o make bootsect.c use NTFS_SB_MAGIC instead of hardcoded value
This commit is contained in:
parent
43b61b82e7
commit
03fabce6eb
@ -27,9 +27,8 @@
|
||||
#include "endians.h"
|
||||
#include "support.h"
|
||||
|
||||
/* The NTFS oem_id */
|
||||
#define magicNTFS const_cpu_to_le64(0x202020205346544e) /* "NTFS " */
|
||||
#define NTFS_SB_MAGIC 0x5346544e /* 'NTFS' */
|
||||
/* The NTFS oem_id "NTFS " */
|
||||
#define NTFS_SB_MAGIC const_cpu_to_le64(0x202020205346544eULL)
|
||||
|
||||
/*
|
||||
* Location of bootsector on partition:
|
||||
|
@ -83,7 +83,7 @@ BOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR *b,
|
||||
|
||||
/* Check OEMidentifier is "NTFS " */
|
||||
ntfs_log_debug("Checking OEMid... ");
|
||||
if (b->oem_id != cpu_to_le64(0x202020205346544eULL)) /* "NTFS " */
|
||||
if (b->oem_id != NTFS_SB_MAGIC) /* "NTFS " */
|
||||
goto not_ntfs;
|
||||
ntfs_log_debug("OK\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user