Opened 23 years ago

Last modified 23 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 by Tim Kosse, 23 years ago

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

comment:2 by links2learning, 23 years ago

Hi,
works fine on my Win95.

Strange.
Clive

comment:3 by Tim Kosse, 23 years ago

@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.