Ticket #120 (closed Bug report)

Opened 8 years ago

Last modified 8 years ago

no connection to default site

Reported by: djnestle Owned by:
Priority: normal Component: Other
Keywords: Cc: djnestle, codesquid, links2learning
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

Changed 8 years ago by codesquid

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

Changed 8 years ago by links2learning

Hi,
works fine on my Win95.

Strange.
Clive

Changed 8 years ago by codesquid

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