Opened 17 years ago

Last modified 17 years ago

#120 closed Bug report

no connection to default site

Reported by: djnestle Owned by:
Priority: normal Component: Other
Keywords: Cc: djnestle, Tim Kosse, links2learning
Component version: Operating system type:
Operating system version:

Description

On my system (win95), the function "connect to default site" does not work.
I could fix the problem by changing the while-loop within function
CSiteManager::GetDefaultSite(CString substring) : (changed/new lines are marked *)

while(RegEnumKeyEx(key,index,buffer,&length,0,0,0,0)==ERROR_SUCCESS)
{

t_Site *site;

  • if(substring == "")
  • site=GetDefaultSite(buffer);
  • else

site=GetDefaultSite(substring+"
"+buffer);

if (site)

return site;

index++;
length=1000;

}

David

Change History (3)

comment:1 Changed 17 years ago by Tim Kosse

Thanks for the fix David, I've committed it to the CVS
repositiory.

comment:2 Changed 17 years ago by links2learning

Hi,
works fine on my Win95.

Strange.
Clive

comment:3 Changed 17 years ago by Tim Kosse

@Clive
the bug is caused by to backslashes within a registry key
(i.e. HKEY_CURRENT_USER\Software
blalala)
Some Windows versions can't handle this

Note: See TracTickets for help on using tickets.