From 6eef4f7cdc0df6d1f9d317be3f2b200b812f4e66 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 23 Oct 2009 14:49:44 -0700 Subject: [PATCH] (SIGAR-186) fix Win32.getFileVersion on windows 2000 --- src/os/win32/win32_sigar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 src/os/win32/win32_sigar.c diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c old mode 100644 new mode 100755 index 39c46ac1..fed8e0d3 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -3705,7 +3705,7 @@ int sigar_file_version_get(sigar_file_version_t *version, data = malloc(len); if (GetFileVersionInfo(name, handle, len, data)) { - if (VerQueryValue(data, "\\", &info, 0)) { + if (VerQueryValue(data, "\\", &info, &len)) { version->product_major = HIWORD(info->dwProductVersionMS); version->product_minor = LOWORD(info->dwProductVersionMS); version->product_build = HIWORD(info->dwProductVersionLS);