summaryrefslogtreecommitdiff
path: root/pyparallel
diff options
context:
space:
mode:
Diffstat (limited to 'pyparallel')
-rw-r--r--pyparallel/src/win32/loaddrv_console/loaddrv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyparallel/src/win32/loaddrv_console/loaddrv.c b/pyparallel/src/win32/loaddrv_console/loaddrv.c
index 7b6f330..9024ce2 100644
--- a/pyparallel/src/win32/loaddrv_console/loaddrv.c
+++ b/pyparallel/src/win32/loaddrv_console/loaddrv.c
@@ -66,7 +66,9 @@ int main(int argc, char *argv[]) {
} else if (strcmp(argv[1], "install") == 0) {
char path[MAX_PATH*2];
if (argc<4) {
- sprintf(path, "%s.sys", argv[2]);
+ char cwd[MAX_PATH];
+ getcwd(cwd, sizeof cwd);
+ sprintf(path, "%s\\%s.sys", cwd, argv[2]);
} else {
strncpy(path, argv[3], MAX_PATH);
}