Skip to content

Commit d738123

Browse files
authored
fix: gate conpty-exclusive call behind conpty check (#778)
1 parent 56ae53b commit d738123

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/win/conpty.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ static Napi::Value PtyConnect(const Napi::CallbackInfo& info) {
428428

429429
HANDLE hLibrary = LoadConptyDll(info, useConptyDll);
430430
bool fLoadedDll = hLibrary != nullptr;
431-
if (fLoadedDll)
431+
if (useConptyDll && fLoadedDll)
432432
{
433433
PFNRELEASEPSEUDOCONSOLE const pfnReleasePseudoConsole = (PFNRELEASEPSEUDOCONSOLE)GetProcAddress(
434434
(HMODULE)hLibrary, "ConptyReleasePseudoConsole");

0 commit comments

Comments
 (0)