user[3/5]: handle special cases for SPI_SETDESKWALLPAPER

Andrew Ziem ahziem1 at mailbolt.com
Sat Jun 10 17:31:45 CDT 2006


Thank you for catching that.  I missed the part

        = {'\0'};



Andrey Turkin wrote:
> I cannot see where emptyW initialized.
> 
> Andrew Ziem wrote:
>> The special cases remove the wallpaper or set it to default.  
>> Previously, these cases were ignored, so Wine would crash.
>>
> <snip>
>> +        if (NULL == pvParam || SETWALLPAPER_DEFAULT == pvParam)
>> +        {
>> +            static const WCHAR emptyW[1];
>> +            if (!SetDeskWallPaper( (LPSTR)pvParam ))
>> +                return FALSE;
>> +            SYSPARAMS_Save(SPI_SETDESKWALLPAPER_REGKEY, 
>> SPI_SETDESKWALLPAPER_VALNAME, emptyW, fWinIni);




More information about the wine-devel mailing list