File tree 2 files changed +11
-0
lines changed 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1137,9 +1137,12 @@ static void fs__utime(uv_fs_t* req) {
1137
1137
1138
1138
if (fs__utime_handle (handle , req -> atime , req -> mtime ) != 0 ) {
1139
1139
SET_REQ_WIN32_ERROR (req , GetLastError ());
1140
+ CloseHandle (handle );
1140
1141
return ;
1141
1142
}
1142
1143
1144
+ CloseHandle (handle );
1145
+
1143
1146
req -> result = 0 ;
1144
1147
}
1145
1148
Original file line number Diff line number Diff line change 25
25
#include <stdio.h>
26
26
#include <process.h>
27
27
#include <windows.h>
28
+ #if !defined(__MINGW32__ )
29
+ #include <crtdbg.h>
30
+ #endif
31
+
28
32
29
33
#include "task.h"
30
34
#include "runner.h"
@@ -44,6 +48,10 @@ void platform_init(int argc, char **argv) {
44
48
/* Disable the "application crashed" popup. */
45
49
SetErrorMode (SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX |
46
50
SEM_NOOPENFILEERRORBOX );
51
+ #if !defined(__MINGW32__ )
52
+ _CrtSetReportMode (_CRT_ASSERT , _CRTDBG_MODE_DEBUG );
53
+ _CrtSetReportMode (_CRT_ERROR , _CRTDBG_MODE_DEBUG );
54
+ #endif
47
55
48
56
_setmode (0 , _O_BINARY );
49
57
_setmode (1 , _O_BINARY );
You can’t perform that action at this time.
0 commit comments