File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -347,8 +347,8 @@ func initPanicFile(path string) error {
347347 // Update STD_ERROR_HANDLE to point to the panic file so that Go writes to
348348 // it when it panics. Remember the old stderr to restore it before removing
349349 // the panic file.
350- sh := windows .STD_ERROR_HANDLE
351- h , err := windows .GetStdHandle (uint32 ( sh ) )
350+ sh := uint32 ( windows .STD_ERROR_HANDLE )
351+ h , err := windows .GetStdHandle (sh )
352352 if err != nil {
353353 return err
354354 }
@@ -372,7 +372,7 @@ func initPanicFile(path string) error {
372372func removePanicFile () {
373373 if st , err := panicFile .Stat (); err == nil {
374374 if st .Size () == 0 {
375- sh := windows .STD_ERROR_HANDLE
375+ sh := uint32 ( windows .STD_ERROR_HANDLE )
376376 setStdHandle .Call (uintptr (sh ), uintptr (oldStderr ))
377377 panicFile .Close ()
378378 os .Remove (panicFile .Name ())
You can’t perform that action at this time.
0 commit comments