[DESK] StringCbCat() needs bytes, not chars (#2070)

This commit is contained in:
Serge Gautherie 2019-11-21 01:10:20 +01:00 committed by Hermès BÉLUSCA - MAÏTO
parent 0f92924a99
commit 5b37caa9d7

View file

@ -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;
}