void *open_settings_r(char *sessionname)
void *open_settings_r(const char *sessionname)
void *open_settings_r(char *sessionname){    HKEY subkey1, sesskey;    char *p;    p = smalloc(3 * strlen(sessionname) + 1);    mungestr(sessionname, p);    if (RegOpenKey(HKEY_CURRENT_USER, puttystr, &subkey1) != ERROR_SUCCESS) {	sesskey = NULL;    } else {	if (RegOpenKey(subkey1, p, &sesskey) != ERROR_SUCCESS) {	    sesskey = NULL;	}	RegCloseKey(subkey1);    }    sfree(p);    return (void *) sesskey;}