From 66dfc4fd5b1ed49d645c19d5133e01cd96191c0a Mon Sep 17 00:00:00 2001 From: Zhang Zhaolong Date: Fri, 25 Apr 2014 21:14:10 +0800 Subject: [PATCH] winpr: fix error malloc size. --- winpr/libwinpr/utils/collections/ListDictionary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winpr/libwinpr/utils/collections/ListDictionary.c b/winpr/libwinpr/utils/collections/ListDictionary.c index b89620f6e..ca65d8a08 100644 --- a/winpr/libwinpr/utils/collections/ListDictionary.c +++ b/winpr/libwinpr/utils/collections/ListDictionary.c @@ -144,8 +144,8 @@ int ListDictionary_GetKeys(wListDictionary* listDictionary, ULONG_PTR** ppKeys) } } - pKeys = (ULONG_PTR*) malloc(sizeof(ULONG_PTR*) * count); - ZeroMemory(pKeys, sizeof(ULONG_PTR*) * count); + pKeys = (ULONG_PTR*) malloc(sizeof(ULONG_PTR) * count); + ZeroMemory(pKeys, sizeof(ULONG_PTR) * count); index = 0;