mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[DESK] StringCbCat() needs bytes, not chars (#2070)
This commit is contained in:
committed by
Hermès BÉLUSCA - MAÏTO
parent
0f92924a99
commit
5b37caa9d7
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user