Skip to content
Snippets Groups Projects
Commit ad040259 authored by Reimar Döffinger's avatar Reimar Döffinger Committed by Martin Storsjö
Browse files

win32: Make ff_win32_open more robust


- Make MultiByteToWideChar fail when it encounters invalid encoding.
  Without this, invalid characters might just be skipped
- When MultiByteToWideChar fails, assume the file name is in CP_ACP
  and open it via normal open function, even when the file will be
  written
- When malloc fails return error instead of crashing

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent e9cc9883
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment