diff --git a/redo/table_windows.c b/redo/table_windows.c index 28d606f..25cc81b 100644 --- a/redo/table_windows.c +++ b/redo/table_windows.c @@ -109,7 +109,7 @@ void setTableSubclass(HWND hwnd, void *data) { struct tableData *t; - t = (struct tableData *) malloc(sizeof (struct tableData *)); + t = (struct tableData *) malloc(sizeof (struct tableData)); if (t == NULL) xpanic("error allocating structure for Table extra data", GetLastError()); ZeroMemory(t, sizeof (struct tableData));