From 97d69abc47a75208388f068fc724c953c6c5b338 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sat, 4 Feb 2012 16:06:29 +0000 Subject: [PATCH] Minor change. --- Library/System.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/System.cpp b/Library/System.cpp index adbb4e7c..023fcfea 100644 --- a/Library/System.cpp +++ b/Library/System.cpp @@ -1248,8 +1248,8 @@ void CSystem::SetWallpaper(const std::wstring& wallpaper, const std::wstring& st std::wstring file = Rainmeter->GetSettingsPath(); file += L"Wallpaper.bmp"; - const CLSID jpegClsid = { 0x557cf400, 0x1a04, 0x11d3, { 0x9a, 0x73, 0x0, 0x0, 0xf8, 0x1e, 0xf3, 0x2e } }; - if (bitmap->Save(file.c_str(), &jpegClsid) == Ok) + const CLSID bmpClsid = { 0x557cf400, 0x1a04, 0x11d3, { 0x9a, 0x73, 0x0, 0x0, 0xf8, 0x1e, 0xf3, 0x2e } }; + if (bitmap->Save(file.c_str(), &bmpClsid) == Ok) { setWallpaperStyle(); SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (void*)file.c_str(), SPIF_UPDATEINIFILE);