From 8f6e1645db9f949afcd172d178891ecebdcc4c2c Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 28 Oct 2014 16:38:29 +0000 Subject: [PATCH] Unzip the actual executable. Signed-off-by: Daira Hopwood --- misc/build_helpers/windows/installer/installer/installer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/build_helpers/windows/installer/installer/installer.cpp b/misc/build_helpers/windows/installer/installer/installer.cpp index 93a2da57..7cb53573 100644 --- a/misc/build_helpers/windows/installer/installer/installer.cpp +++ b/misc/build_helpers/windows/installer/installer/installer.cpp @@ -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."); -- 2.45.2