node-pty 1.1.0-beta32 → 1.1.0-beta34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "Microsoft Corporation"
6
6
  },
7
- "version": "1.1.0-beta32",
7
+ "version": "1.1.0-beta34",
8
8
  "license": "MIT",
9
9
  "main": "./lib/index.js",
10
10
  "types": "./typings/node-pty.d.ts",
package/src/win/conpty.cc CHANGED
@@ -428,7 +428,7 @@ static Napi::Value PtyConnect(const Napi::CallbackInfo& info) {
428
428
 
429
429
  HANDLE hLibrary = LoadConptyDll(info, useConptyDll);
430
430
  bool fLoadedDll = hLibrary != nullptr;
431
- if (fLoadedDll)
431
+ if (useConptyDll && fLoadedDll)
432
432
  {
433
433
  PFNRELEASEPSEUDOCONSOLE const pfnReleasePseudoConsole = (PFNRELEASEPSEUDOCONSOLE)GetProcAddress(
434
434
  (HMODULE)hLibrary, "ConptyReleasePseudoConsole");