Skip to content

Commit

Permalink
Merge registry fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zsuraski committed Mar 14, 2005
1 parent 5a4c0af commit 6e6a1f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions win32/registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ void UpdateIniFromRegistry(char *path TSRMLS_DC)
drive_letter = tmp_buf[0];
cwd++;
}
while (*cwd == '\\' || *cwd == '/') {
cwd++;
}
path = (char *) emalloc(2+strlen(cwd)+1+strlen(orig_path)+1);
sprintf(path, "%c\\%s\\%s", drive_letter, cwd, orig_path);
efree(orig_path);
Expand Down

0 comments on commit 6e6a1f0

Please sign in to comment.