From 5b37caa9d74db52d46118e0fd496a4154ecedae6 Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Thu, 21 Nov 2019 01:10:20 +0100 Subject: [PATCH] [DESK] StringCbCat() needs bytes, not chars (#2070) --- dll/cpl/desk/background.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/cpl/desk/background.c b/dll/cpl/desk/background.c index 1e12963b356..a92f27b7185 100644 --- a/dll/cpl/desk/background.c +++ b/dll/cpl/desk/background.c @@ -1012,7 +1012,7 @@ SetWallpaper(PBACKGROUND_DATA pData) return; } - if (FAILED(StringCbCat(szWallpaper, MAX_PATH, TEXT("\\Wallpaper1.bmp")))) + if (FAILED(StringCbCat(szWallpaper, sizeof(szWallpaper), TEXT("\\Wallpaper1.bmp")))) { return; }