https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5b37caa9d74db52d46118e0fd496a4154ecedae6
commit 5b37caa9d74db52d46118e0fd496a4154ecedae6 Author: Serge Gautherie <[email protected]> AuthorDate: Thu Nov 21 01:10:20 2019 +0100 Commit: Hermès BÉLUSCA - MAÏTO <[email protected]> CommitDate: Thu Nov 21 01:10:20 2019 +0100 [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; }
