diff options
author | Bert Belder <bertbelder@gmail.com> | 2012-10-10 19:18:48 +0400 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2012-10-10 19:18:48 +0400 |
commit | 87518f1e3c0c91418df260258ee99101b8cb86de (patch) | |
tree | 51f2c2b5e9a1d05d8a9c97966d3ef6e9742c2a2a /deps | |
parent | eec8c2edafdb52a4c63dfab77a8d84293dc458d3 (diff) |
uv: upgrade to b0c1a38
Diffstat (limited to 'deps')
-rw-r--r-- | deps/uv/src/win/fs.c | 3 | ||||
-rw-r--r-- | deps/uv/test/runner-win.c | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/deps/uv/src/win/fs.c b/deps/uv/src/win/fs.c index 4a2d93624d2..9b920c817a7 100644 --- a/deps/uv/src/win/fs.c +++ b/deps/uv/src/win/fs.c @@ -1137,9 +1137,12 @@ static void fs__utime(uv_fs_t* req) { if (fs__utime_handle(handle, req->atime, req->mtime) != 0) { SET_REQ_WIN32_ERROR(req, GetLastError()); + CloseHandle(handle); return; } + CloseHandle(handle); + req->result = 0; } diff --git a/deps/uv/test/runner-win.c b/deps/uv/test/runner-win.c index ad36719c8fa..0a9690e774a 100644 --- a/deps/uv/test/runner-win.c +++ b/deps/uv/test/runner-win.c @@ -25,6 +25,10 @@ #include <stdio.h> #include <process.h> #include <windows.h> +#if !defined(__MINGW32__) +#include <crtdbg.h> +#endif + #include "task.h" #include "runner.h" @@ -44,6 +48,10 @@ void platform_init(int argc, char **argv) { /* Disable the "application crashed" popup. */ SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); +#if !defined(__MINGW32__) + _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG); + _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG); +#endif _setmode(0, _O_BINARY); _setmode(1, _O_BINARY); |