Skip to content

Commit 6e6a1f0

Browse files
committed
Merge registry fix
1 parent 5a4c0af commit 6e6a1f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

win32/registry.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ void UpdateIniFromRegistry(char *path TSRMLS_DC)
3838
drive_letter = tmp_buf[0];
3939
cwd++;
4040
}
41+
while (*cwd == '\\' || *cwd == '/') {
42+
cwd++;
43+
}
4144
path = (char *) emalloc(2+strlen(cwd)+1+strlen(orig_path)+1);
4245
sprintf(path, "%c\\%s\\%s", drive_letter, cwd, orig_path);
4346
efree(orig_path);

0 commit comments

Comments
 (0)