Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up some MAX_* #445

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions filesys/fastfat/fatprocs.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ Module Name:

#define Add2Ptr(P,I) ((PVOID)((PUCHAR)(P) + (I)))

#ifndef MAX_ULONG
#define MAX_ULONG ((ULONG)-1)
#endif

#ifndef MAX_USHORT
#define MAX_USHORT ((USHORT)-1)
#endif

//
// We must explicitly tag our allocations.
//
Expand Down
12 changes: 0 additions & 12 deletions gpio/samples/simdevice/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@ Module Name:
#include <wdf.h>
#pragma warning(default:4201)

#ifndef MAX_USHORT
#define MAX_USHORT ((USHORT)-1)
#endif

#ifndef MAX_ULONG
#define MAX_ULONG ((ULONG)-1)
#endif

#ifndef MAX_ULONG64
#define MAX_ULONG64 ((ULONG64)-1)
#endif

//
// Useful macros for setting and checking flags.
//
Expand Down
12 changes: 0 additions & 12 deletions pofx/PEP/inc/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ Module Name:
#define NTSTRSAFE_LIB
#include <ntstrsafe.h>

#ifndef MAX_USHORT
#define MAX_USHORT ((USHORT)-1)
#endif

#ifndef MAX_ULONG
#define MAX_ULONG ((ULONG)-1)
#endif

#ifndef MAX_ULONG64
#define MAX_ULONG64 ((ULONG64)-1)
#endif

//
// Useful macros for setting and checking flags.
//
Expand Down
2 changes: 1 addition & 1 deletion storage/class/cdrom/src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ Return Value:

if (!(NT_SUCCESS(status)) || (requiredSize > 0x0000ffff))
{
// MAX_USHORT, max total size for these events!
// MAXUSHORT, max total size for these events!
TracePrint((TRACE_LEVEL_WARNING, TRACE_FLAG_MCN,
"Error sending event: size too large! (%x)\n",
requiredSize));
Expand Down
2 changes: 1 addition & 1 deletion storage/class/classpnp/src/autorun.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ ClassSendNotification(
&requiredSize);

if (!(NT_SUCCESS(status)) || (requiredSize > 0x0000ffff)) {
// MAX_USHORT, max total size for these events!
// MAXUSHORT, max total size for these events!
TracePrint((TRACE_LEVEL_WARNING, TRACE_FLAG_MCN,
"Error sending event: size too large! (%x)\n",
requiredSize));
Expand Down