AndrewBelt / osdialog

A cross platform wrapper for OS dialogs like file save, open, message boxes, inputs, color picking, etc.
Creative Commons Zero v1.0 Universal
122 stars 19 forks source link

move char buffer variable one closure up to avoid invalid char pointer #5

Closed RicoP closed 5 years ago

RicoP commented 5 years ago

The assignement ofn.lpstrFilter = fBuf will be invalid once the enclosing if statement is left, because fBuf will be of undefined state at this point.

AndrewBelt commented 5 years ago

Thanks!