Skip to content

Commit 4510a89

Browse files
cosmo0920edsiper
authored andcommitted
in_winevtlog: Fix type glitches
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent e3735f7 commit 4510a89

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/in_winevtlog/winevtlog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ struct winevtlog_channel *winevtlog_subscribe(const char *channel, struct winevt
8888

8989
// channel : To wide char
9090
len = MultiByteToWideChar(CP_UTF8, 0, channel, -1, NULL, 0);
91-
wide_channel = flb_malloc(sizeof(PWSTR) * len);
91+
wide_channel = flb_malloc(sizeof(WCHAR) * len);
9292
MultiByteToWideChar(CP_UTF8, 0, channel, -1, wide_channel, len);
9393
if (query != NULL) {
9494
// query : To wide char
9595
len = MultiByteToWideChar(CP_UTF8, 0, query, -1, NULL, 0);
96-
wide_query = flb_malloc(sizeof(PWSTR) * len);
96+
wide_query = flb_malloc(sizeof(WCHAR) * len);
9797
MultiByteToWideChar(CP_UTF8, 0, query, -1, wide_query, len);
9898
ch->query = flb_strdup(query);
9999
}
@@ -1013,7 +1013,7 @@ static wchar_t* convert_str(char *str)
10131013
return NULL;
10141014
}
10151015

1016-
buf = flb_malloc(sizeof(PWSTR) * size);
1016+
buf = flb_malloc(sizeof(WCHAR) * size);
10171017
if (buf == NULL) {
10181018
flb_errno();
10191019
return NULL;

0 commit comments

Comments
 (0)