Never mind, was a really dumb mistake, I forgot that I have to use GetOpenFileNameA resp. GetOpenFileNameW.