[ros-bugs] [Bug 1640] Current wallpaper listed twice in background dialog.

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Fri Jul 7 15:41:09 CEST 2006


http://www.reactos.org/bugzilla/show_bug.cgi?id=1640





------- Comment #6 from grad0621 at di.uoa.gr  2006-07-07 15:41 CET -------
Created an attachment (id=941)
 --> (http://www.reactos.org/bugzilla/attachment.cgi?id=941&action=view)
changes from revision 22897 - hope thsi patch works

if this patch doesn't work either, try replacing the function with the
following lines of code.

This works for me guys.

BOOL CheckListBoxFilename(HWND list, TCHAR *filename)
{
    BackgroundItem *backgroundItem = NULL;
    BOOL returnValue = FALSE;
int i = 0;
    for (i=1;i<MAX_BACKGROUNDS;i++)
    {
      g_backgroundSelection = i;
      backgroundItem = &g_backgroundItems[g_backgroundSelection];
      if(backgroundItem->bWallpaper == TRUE)
      {
      //LOCALE_SYSTEM_DEFAULT must be replaced withLOCALE_USER_DEFAULT  . For
now it's working only with system default
       if ( CompareString(LOCALE_SYSTEM_DEFAULT,NORM_IGNORECASE |
NORM_IGNORENONSPACE,backgroundItem->szFilename,255,filename,255) == 2)
        returnValue = TRUE;
      }
    }
      if (returnValue)
       return TRUE;
      else
       return FALSE;
    }


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
You are the assignee for the bug, or are watching the assignee.


More information about the Ros-bugs mailing list