Skip to content

Commit 9ce55c3

Browse files
committed
Use a named Windows thread enumeration status constant
1 parent c26022b commit 9ce55c3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎Modules/_remote_debugging/_remote_debugging.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ typedef struct {
105105
#ifdef MS_WINDOWS
106106
#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
107107
#define STATUS_INFO_LENGTH_MISMATCH ((NTSTATUS)0xC0000004L)
108+
#define STATUS_NO_MORE_ENTRIES ((NTSTATUS)0x8000001AL)
108109
typedef enum _WIN32_THREADSTATE {
109110
WIN32_THREADSTATE_INITIALIZED = 0,
110111
WIN32_THREADSTATE_READY = 1,

‎Modules/_remote_debugging/threads.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ wait_for_threads_to_stop(RemoteUnwinderObject *unwinder)
861861
CloseHandle(previous);
862862
}
863863
previous = next;
864-
if (status == (NTSTATUS)0x8000001AL) { // STATUS_NO_MORE_ENTRIES
864+
if (status == STATUS_NO_MORE_ENTRIES) {
865865
break;
866866
}
867867
if (status < 0) {

0 commit comments

Comments
 (0)