Re: user[2/5]: implement A version of SPI_GETDESKWALLPAPER
10 Jul
2006
10 Jul
'06
5:19 p.m.
"Andrew Ziem" <ahziem1(a)mailbolt.com> wrote:
+ case SPI_GETDESKWALLPAPER: /* 115 */ + { + WCHAR buffer[MAX_PATH]; + ret = SystemParametersInfoW( SPI_GETDESKWALLPAPER, uiParam, buffer, fuWinIni ); + if (!WideCharToMultiByte(CP_ACP, 0, buffer, -1, pvParam, uiParam, NULL, NULL)) + ret = FALSE; + break; + }
You need to check first whether the SystemParametersInfoW call succeeded or not, otherwise it will end up translating garbage in WideCharToMultiByte. -- Dmitry.
7097
Age (days ago)
7097
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov