Skip to content

Commit bc54b0b

Browse files
committed
Small changes
1 parent 7f6bfb4 commit bc54b0b

5 files changed

Lines changed: 235 additions & 120 deletions

File tree

lib/libpe/include/libpe/pe.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#ifndef LIBPE_H
2323
#define LIBPE_H
2424

25+
#include <stdint.h>
2526
#ifdef __cplusplus
2627
extern "C" {
2728
#endif
@@ -46,7 +47,10 @@ extern "C" {
4647
#include "resources.h"
4748
#include "utils.h"
4849

49-
#define MAGIC_MZ 0x5a4d // Belongs to the DOS header
50+
static const char __MAGIC_MZ[2] = {'M','Z'};
51+
static const uint16_t MAGIC_MZ = ('Z' <<8) + 'M';
52+
53+
// #define MAGIC_MZ 0x5a4d // Belongs to the DOS header
5054
#define MAX_DIRECTORIES 16
5155
#define MAX_SECTIONS 96
5256

0 commit comments

Comments
 (0)