This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
*(pc+1) = '\0';
if (strstr(q, "${HOME}") == q) {
char userhome[MAX_PATH];
strcpy(userdir, getUserHomeFromRegistry(userhome));
char *userprofile = getenv("USERPROFILE");
if (userprofile == NULL) {
userprofile = getUserHomeFromRegistry(userhome);
}
if (userprofile != NULL) {
strcpy(userdir, userprofile);
// else {
// ... keep the default userdir value 'c:\nbuser'
// }
strcat(userdir, q + strlen("${HOME}"));
} else {
strcpy(userdir, q);