Windows: Fix VDir.rewind

This commit is contained in:
Vicki Pfau 2017-03-24 23:01:34 -07:00
parent caab7f6d89
commit 1844e37f5c
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ Bugfixes:
- Util: Fix highest-fd socket not being returned by SocketAccept - Util: Fix highest-fd socket not being returned by SocketAccept
- Qt: Fix linking after some windows have been closed - Qt: Fix linking after some windows have been closed
- GBA Video: Fix wrong palette on 256-color sprites in OBJWIN - GBA Video: Fix wrong palette on 256-color sprites in OBJWIN
- Windows: Fix VDir.rewind
Misc: Misc:
- Qt: Improved HiDPI support - Qt: Improved HiDPI support
- Feature: Support ImageMagick 7 - Feature: Support ImageMagick 7

View File

@ -84,7 +84,7 @@ void _vdwRewind(struct VDir* vd) {
struct VDirW32* vdw = (struct VDirW32*) vd; struct VDirW32* vdw = (struct VDirW32*) vd;
FindClose(vdw->handle); FindClose(vdw->handle);
wchar_t name[MAX_PATH + 1]; wchar_t name[MAX_PATH + 1];
MultiByteToWideChar(CP_UTF8, MB_PRECOMPOSED, vdw->path, -1, name, MAX_PATH); MultiByteToWideChar(CP_UTF8, 0, vdw->path, -1, name, MAX_PATH);
StringCchCatNW(name, MAX_PATH, L"\\*", 2); StringCchCatNW(name, MAX_PATH, L"\\*", 2);
if (vdw->vde.utf8Name) { if (vdw->vde.utf8Name) {
free(vdw->vde.utf8Name); free(vdw->vde.utf8Name);