fixed unitialized memory in osd_file (nw)

This commit is contained in:
Oliver Stöneberg 2013-01-09 19:12:31 +00:00
parent e111fe61f3
commit d61e5d5a15

View File

@ -103,6 +103,7 @@ file_error osd_open(const char *path, UINT32 openflags, osd_file **file, UINT64
filerr = FILERR_OUT_OF_MEMORY;
goto error;
}
memset(*file, 0x00, sizeof(**file) + sizeof(TCHAR) * _tcslen(t_path));
if (win_check_socket_path(path))
{