Repository: minio/minio (language: go)

Issue:
Panic at windows 11
## NOTE

## Expected Behavior
Start it
## Current Behavior
When start minio at windows 11.
I will show 
```log
Exception 0xc0000008
```
And exit
## Possible Solution
When I delete this 
https://github.com/minio/minio/blob/394690dcfb1b80532d5785bbf5313a0e57b58a00/cmd/os_windows.go#L56
https://github.com/minio/minio/blob/394690dcfb1b80532d5785bbf5313a0e57b58a00/cmd/os_windows.go#L131
It will start normal.
## Steps to Reproduce (for bugs)
Clone repo
go build main.go

minio.exe server /dir

## Context


## Regression
<!-- Is this issue a regression? (Yes / No) -->
<!-- If Yes, optionally please include minio version or commit id or PR# that caused this regression, if you have these details. -->

## Your Environment
go 1.20.4
* Version used (`minio --version`):
repo latest
* Server setup and configuration:
*  server /dir
* Operating System and version (`uname -a`):
windows 11


Discussion / hints:
@jiuker Please post the entire crash.

Fix patch:
diff --git a/cmd/os_windows.go b/cmd/os_windows.go
index d06a651511248..f017768bdbba1 100644
--- a/cmd/os_windows.go
+++ b/cmd/os_windows.go
@@ -53,7 +53,7 @@ func readDirFn(dirPath string, filter func(name string, typ os.FileMode) error)
 		}
 		return err
 	}
-	defer syscall.CloseHandle(handle)
+	defer syscall.FindClose(handle)
 
 	for ; ; err = syscall.FindNextFile(handle, data) {
 		if err != nil {
@@ -128,7 +128,7 @@ func readDirWithOpts(dirPath string, opts readDirOpts) (entries []string, err er
 		return nil, syscallErrToFileErr(dirPath, err)
 	}
 
-	defer syscall.CloseHandle(handle)
+	defer syscall.FindClose(handle)
 
 	count := opts.count
 	for ; count != 0; err = syscall.FindNextFile(handle, data) {


Test patch: