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

Commit 0fee0c1

Browse files
nornagoncodebytere
authored andcommitted
fix: microsoft-goto warning w/ clang-cl
see nodejs/node#22961
1 parent f34104a commit 0fee0c1

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
@@ -2280,13 +2280,15 @@ static void DebugProcess(const FunctionCallbackInfo<Value>& args) {
22802280
wchar_t mapping_name[32];
22812281
LPTHREAD_START_ROUTINE* handler = nullptr;
22822282

2283+
DWORD pid;
2284+
22832285
if (args.Length() != 1) {
22842286
env->ThrowError("Invalid number of arguments.");
22852287
goto out;
22862288
}
22872289

22882290
CHECK(args[0]->IsNumber());
2289-
DWORD pid = args[0].As<Integer>()->Value();
2291+
pid = args[0].As<Integer>()->Value();
22902292

22912293
process = OpenProcess(PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION |
22922294
PROCESS_VM_OPERATION | PROCESS_VM_WRITE |

0 commit comments

Comments
 (0)