diff --git a/src/win/util.c b/src/win/util.c index 32a82fa0..d4173c52 100644 --- a/src/win/util.c +++ b/src/win/util.c @@ -452,6 +452,7 @@ int uv_get_process_title(char* buffer, size_t size) { * we must query it with getConsoleTitleW */ if (!process_title && uv__get_process_title() == -1) { + LeaveCriticalSection(&process_title_lock); return uv_translate_sys_error(GetLastError()); }