Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 59083d5

Browse files
committed
fix: microsoft-goto warning w/ clang-cl
see nodejs/node#22961
1 parent b7b6e55 commit 59083d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/node.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2432,13 +2432,15 @@ static void DebugProcess(const FunctionCallbackInfo<Value>& args) {
24322432
wchar_t mapping_name[32];
24332433
LPTHREAD_START_ROUTINE* handler = nullptr;
24342434

2435+
DWORD pid;
2436+
24352437
if (args.Length() != 1) {
24362438
env->ThrowError("Invalid number of arguments.");
24372439
goto out;
24382440
}
24392441

24402442
CHECK(args[0]->IsNumber());
2441-
DWORD pid = args[0].As<Integer>()->Value();
2443+
pid = args[0].As<Integer>()->Value();
24422444

24432445
process = OpenProcess(PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION |
24442446
PROCESS_VM_OPERATION | PROCESS_VM_WRITE |

0 commit comments

Comments
 (0)