GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: initialize pid variable before goto · nodejs/node@ace6e07

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node.cc‎

Copy file name to clipboardExpand all lines: src/node.cc
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2278,14 +2278,15 @@ static void DebugProcess(const FunctionCallbackInfo<Value>& args) {
22782278
HANDLE mapping = nullptr;
22792279
wchar_t mapping_name[32];
22802280
LPTHREAD_START_ROUTINE* handler = nullptr;
2281+
DWORD pid = 0;
22812282

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

22872288
CHECK(args[0]->IsNumber());
2288-
DWORD pid = args[0].As<Integer>()->Value();
2289+
pid = args[0].As<Integer>()->Value();
22892290

22902291
process = OpenProcess(PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION |
22912292
PROCESS_VM_OPERATION | PROCESS_VM_WRITE |

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.