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);