all repos — mgba @ ea1c8573513942483b51e98e80e8c76ccf90c1cc

mGBA Game Boy Advance Emulator

Windows: Fix VDir.rewind
Vicki Pfau vi@endrift.com
Fri, 24 Mar 2017 23:01:34 -0700
commit

ea1c8573513942483b51e98e80e8c76ccf90c1cc

parent

fbda6d8a1cd76de2385c894bf9182f41af08b71d

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -30,6 +30,7 @@ - GBA I/O: Handle audio registers specially when deserializing

- Util: Fix highest-fd socket not being returned by SocketAccept - Qt: Fix linking after some windows have been closed - GBA Video: Fix wrong palette on 256-color sprites in OBJWIN + - Windows: Fix VDir.rewind Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M src/platform/windows/vfs-w32.csrc/platform/windows/vfs-w32.c

@@ -84,7 +84,7 @@ void _vdwRewind(struct VDir* vd) {

struct VDirW32* vdw = (struct VDirW32*) vd; FindClose(vdw->handle); 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); if (vdw->vde.utf8Name) { free(vdw->vde.utf8Name);