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

fix: microsoft-goto warning w/ clang-cl #66

Merged
merged 1 commit into from
Sep 19, 2018
Merged
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
4 changes: 3 additions & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2432,13 +2432,15 @@ static void DebugProcess(const FunctionCallbackInfo<Value>& args) {
wchar_t mapping_name[32];
LPTHREAD_START_ROUTINE* handler = nullptr;

DWORD pid;

if (args.Length() != 1) {
env->ThrowError("Invalid number of arguments.");
goto out;
}

CHECK(args[0]->IsNumber());
DWORD pid = args[0].As<Integer>()->Value();
pid = args[0].As<Integer>()->Value();

process = OpenProcess(PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION |
PROCESS_VM_OPERATION | PROCESS_VM_WRITE |
Expand Down