rodrigocfd / windigo

Windows API and GUI in idiomatic Go.
https://pkg.go.dev/github.com/rodrigocfd/windigo
MIT License
417 stars 23 forks source link

Fix crashes when mapped file line is empty #23

Closed Hoto-Cocoa closed 1 year ago

Hoto-Cocoa commented 1 year ago

I was trying to use win.IniLoad.

However, It panic with message: "runtime error: index out of range [-1]".

I found my INI file has empty line, and works after changed that lines.

Thanks.