Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
horsicq committed Dec 23, 2019
1 parent 0e75675 commit d7446b4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ qint64 XLE::getImageVxdHeaderOffset()
return nResult;
}

qint64 XLE::getImageVxdHeaderSize()
{
return sizeof(XLE_DEF::IMAGE_VXD_HEADER);
}

XLE_DEF::IMAGE_VXD_HEADER XLE::getImageVxdHeader()
{
XLE_DEF::IMAGE_VXD_HEADER result={};
Expand Down
1 change: 1 addition & 0 deletions xle.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class XLE : public XMSDOS
virtual bool isValid();

qint64 getImageVxdHeaderOffset();
qint64 getImageVxdHeaderSize();
XLE_DEF::IMAGE_VXD_HEADER getImageVxdHeader();

quint16 getImageVxdHeader_magic();
Expand Down
20 changes: 20 additions & 0 deletions xmsdos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,26 @@ qint32 XMSDOS::get_lfanew()
return read_int32(offsetof(XMSDOS_DEF::IMAGE_DOS_HEADEREX,e_lfanew));
}

qint64 XMSDOS::getDosHeaderOffset()
{
return 0;
}

qint64 XMSDOS::getDosHeaderSize()
{
return sizeof(XMSDOS_DEF::IMAGE_DOS_HEADER);
}

qint64 XMSDOS::getDosHeaderExOffset()
{
return 0;
}

qint64 XMSDOS::getDosHeaderExSize()
{
return sizeof(XMSDOS_DEF::IMAGE_DOS_HEADEREX);
}

XMSDOS_DEF::IMAGE_DOS_HEADER XMSDOS::getDosHeader()
{
XMSDOS_DEF::IMAGE_DOS_HEADER result={};
Expand Down
5 changes: 5 additions & 0 deletions xmsdos.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ class XMSDOS : public XBinary
quint16 get_magic();
qint32 get_lfanew();

qint64 getDosHeaderOffset();
qint64 getDosHeaderSize();
qint64 getDosHeaderExOffset();
qint64 getDosHeaderExSize();

XMSDOS_DEF::IMAGE_DOS_HEADER getDosHeader();
XMSDOS_DEF::IMAGE_DOS_HEADEREX getDosHeaderEx();
void setDosHeader(XMSDOS_DEF::IMAGE_DOS_HEADER *pDosHeader);
Expand Down

0 comments on commit d7446b4

Please sign in to comment.