Skip to content

Commit f4ab16f

Browse files
committed
[NT:EXTENSION] Move MAKEDWORD2 macro to NDK.Ext.h
1 parent e0623dd commit f4ab16f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/Include/KNSoft/NDK/NDK.Ext.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// Test combined flags
1616
#define TEST_FLAGS(val, flags) (((val) & (flags)) == (flags))
1717

18+
#define MAKEDWORD2(ll, lh, hl, hh) (((DWORD)MAKEWORD(hl, hh) << 16) & (DWORD)MAKEWORD(ll, lh))
19+
1820
#define IPV4_LE(v1, v2, v3, v4) MAKEDWORD2(v1, v2, v3, v4)
1921
#define IPV4_BE(v1, v2, v3, v4) MAKEDWORD2(v4, v3, v2, v1)
2022

Source/Include/KNSoft/NDK/NT/Extension/Misc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ MAKE_NTSTATUS(
1414
(Code & NT_CODE_MASK));
1515
}
1616

17-
#define MAKEDWORD2(ll, lh, hl, hh) (((DWORD)MAKEWORD(hl, hh) << 16) & (DWORD)MAKEWORD(ll, lh))
18-
1917
#pragma region Alignments
2018

2119
#define CODE_ALIGNMENT 0x10

0 commit comments

Comments
 (0)