win: always leave crit section in get_proc_title

fix #1235
This commit is contained in:
Fedor Indutny 2014-04-14 13:42:14 +04:00
parent 23d130b209
commit ffb49220cf

View File

@ -425,6 +425,7 @@ uv_err_t 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__new_sys_error(GetLastError());
}