summaryrefslogtreecommitdiff
path: root/src/win32.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-02-24 22:25:23 +0000
committersmatz <smatz@openttd.org>2009-02-24 22:25:23 +0000
commit846044ee26f68875e8146fe2b00a45071bc66644 (patch)
tree2a7fbbbb5b49230ad93df79d2e2988128b932842 /src/win32.cpp
parent286039939734152914ae0b5ffe3a9fd59179262d (diff)
downloadopenttd-846044ee26f68875e8146fe2b00a45071bc66644.tar.xz
(svn r15571) -Fix: incorrect use of memset
Diffstat (limited to 'src/win32.cpp')
-rw-r--r--src/win32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32.cpp b/src/win32.cpp
index 56f2ce1cf..9b58757e9 100644
--- a/src/win32.cpp
+++ b/src/win32.cpp
@@ -150,7 +150,7 @@ static uint32 CalcCRC(byte *data, uint size, uint32 crc)
static void GetFileInfo(DebugFileInfo *dfi, const TCHAR *filename)
{
HANDLE file;
- memset(dfi, 0, sizeof(dfi));
+ memset(dfi, 0, sizeof(*dfi));
file = CreateFile(filename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0);
if (file != INVALID_HANDLE_VALUE) {