Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GoGoOtaku committed Oct 16, 2023
1 parent 7f6bfb4 commit bc54b0b
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 120 deletions.
6 changes: 5 additions & 1 deletion lib/libpe/include/libpe/pe.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#ifndef LIBPE_H
#define LIBPE_H

#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -46,7 +47,10 @@ extern "C" {
#include "resources.h"
#include "utils.h"

#define MAGIC_MZ 0x5a4d // Belongs to the DOS header
static const char __MAGIC_MZ[2] = {'M','Z'};
static const uint16_t MAGIC_MZ = ('Z' <<8) + 'M';

// #define MAGIC_MZ 0x5a4d // Belongs to the DOS header
#define MAX_DIRECTORIES 16
#define MAX_SECTIONS 96

Expand Down
Loading

0 comments on commit bc54b0b

Please sign in to comment.