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.

View | Details | Raw Unified | Return to bug 73132
Collapse All | Expand All

(-)netbeans.cpp (-1 / +11 lines)
Lines 232-238 Link Here
232
            *(pc+1) = '\0';
232
            *(pc+1) = '\0';
233
            if (strstr(q, "${HOME}") == q) {
233
            if (strstr(q, "${HOME}") == q) {
234
                char userhome[MAX_PATH];
234
                char userhome[MAX_PATH];
235
                strcpy(userdir, getUserHomeFromRegistry(userhome));
235
                char *userprofile = getenv("USERPROFILE");
236
237
                if (userprofile == NULL) {
238
		    userprofile = getUserHomeFromRegistry(userhome);
239
                }
240
                if (userprofile != NULL) {
241
		    strcpy(userdir, userprofile);
242
                }
243
                // else {
244
                //   ... keep the default userdir value 'c:\nbuser'
245
                // }
236
                strcat(userdir, q + strlen("${HOME}"));
246
                strcat(userdir, q + strlen("${HOME}"));
237
            } else {
247
            } else {
238
                strcpy(userdir, q);
248
                strcpy(userdir, q);

Return to bug 73132