diff options
author | Oliver Stöneberg <firewave@users.noreply.github.com> | 2013-01-09 19:12:31 +0000 |
---|---|---|
committer | Oliver Stöneberg <firewave@users.noreply.github.com> | 2013-01-09 19:12:31 +0000 |
commit | d61e5d5a1523c536f9fe87dd20ea98a33abd6731 (patch) | |
tree | 80f064a8fd7a623fbc902643293c5dac204ecf83 /src | |
parent | e111fe61f374873f16f80f1d6c4cf85273dd1408 (diff) |
fixed unitialized memory in osd_file (nw)
Diffstat (limited to 'src')
-rw-r--r-- | src/osd/windows/winfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/windows/winfile.c b/src/osd/windows/winfile.c index 17a15bb0055..1d3ea1748a6 100644 --- a/src/osd/windows/winfile.c +++ b/src/osd/windows/winfile.c @@ -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)) { |