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