]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Unzip the actual executable.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 28 Oct 2014 16:38:29 +0000 (16:38 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 28 Oct 2014 16:38:29 +0000 (16:38 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
misc/build_helpers/windows/installer/installer/installer.cpp

index 93a2da579e1fed87b939db2d23a926c7663dbeb2..7cb5357329f458e816fd9f94882deb0f9c2033e3 100644 (file)
@@ -79,7 +79,7 @@ void unzip_from_executable(wchar_t *executable_path, wchar_t *destination_dir) {
        unsigned char disk_num[] = {0x00, 0x00};
 
        errno = 0;
-       FILE *f = _wfopen(L"C:\\tahoe\\foo.zip", L"rb");
+       FILE *f = _wfopen(executable_path, L"rb");
        fail_unless(f != NULL && errno == 0 && ferror(f) == 0,
                        "Could not open executable file.");