Skip to content

Commit 87518f1

Browse files
committed
uv: upgrade to b0c1a38
1 parent eec8c2e commit 87518f1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

deps/uv/src/win/fs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,9 +1137,12 @@ static void fs__utime(uv_fs_t* req) {
11371137

11381138
if (fs__utime_handle(handle, req->atime, req->mtime) != 0) {
11391139
SET_REQ_WIN32_ERROR(req, GetLastError());
1140+
CloseHandle(handle);
11401141
return;
11411142
}
11421143

1144+
CloseHandle(handle);
1145+
11431146
req->result = 0;
11441147
}
11451148

deps/uv/test/runner-win.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#include <stdio.h>
2626
#include <process.h>
2727
#include <windows.h>
28+
#if !defined(__MINGW32__)
29+
#include <crtdbg.h>
30+
#endif
31+
2832

2933
#include "task.h"
3034
#include "runner.h"
@@ -44,6 +48,10 @@ void platform_init(int argc, char **argv) {
4448
/* Disable the "application crashed" popup. */
4549
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX |
4650
SEM_NOOPENFILEERRORBOX);
51+
#if !defined(__MINGW32__)
52+
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG);
53+
_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG);
54+
#endif
4755

4856
_setmode(0, _O_BINARY);
4957
_setmode(1, _O_BINARY);

0 commit comments

Comments
 (0)