We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56ae53b commit d738123Copy full SHA for d738123
1 file changed
src/win/conpty.cc
@@ -428,7 +428,7 @@ static Napi::Value PtyConnect(const Napi::CallbackInfo& info) {
428
429
HANDLE hLibrary = LoadConptyDll(info, useConptyDll);
430
bool fLoadedDll = hLibrary != nullptr;
431
- if (fLoadedDll)
+ if (useConptyDll && fLoadedDll)
432
{
433
PFNRELEASEPSEUDOCONSOLE const pfnReleasePseudoConsole = (PFNRELEASEPSEUDOCONSOLE)GetProcAddress(
434
(HMODULE)hLibrary, "ConptyReleasePseudoConsole");
0 commit comments