1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-05 09:18:56 +00:00

conhost: Use correct pointer type in edit_line_transpose_words (scan-build).

This commit is contained in:
Alex Henrie 2023-06-16 22:02:19 -06:00 committed by Alexandre Julliard
parent 58e81212fc
commit 2455229549

View File

@ -865,7 +865,7 @@ static void edit_line_transpose_words( struct console *console )
{
unsigned int len_r = right_offset - ctx->cursor;
unsigned int len_l = ctx->cursor - left_offset;
char *tmp = malloc( len_r * sizeof(WCHAR) );
WCHAR *tmp = malloc( len_r * sizeof(WCHAR) );
if (!tmp)
{
ctx->status = STATUS_NO_MEMORY;