From d0c765b101b1bb41d1f7c19ca6e6ac6c5e175534 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 13 Aug 2013 00:26:12 -0400 Subject: [PATCH] VBOX: When running a 32-bit vboxwrapper on a 64-bit Windows machine, exit with a temporary error suggesting that the volunteer upgrade to a 64-bit BOINC client. 32-bit vboxwrapper cannot detect VirtualBox on a 64-bit system. --- samples/vboxwrapper/vboxwrapper.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/samples/vboxwrapper/vboxwrapper.cpp b/samples/vboxwrapper/vboxwrapper.cpp index 83a618404c..8f77f9ee30 100644 --- a/samples/vboxwrapper/vboxwrapper.cpp +++ b/samples/vboxwrapper/vboxwrapper.cpp @@ -427,6 +427,19 @@ int main(int argc, char** argv) { // boinc_get_init_data_p(&aid); + // Check for architecture incompatibilities + // +#if defined(_WIN32) && defined(_M_IX86) + if (strstr(aid.host_info.os_version, "x64")) { + fprintf( + stderr, + "%s 64-bit version of BOINC is required, please upgrade, telling BOINC to reschedule execution for a later date.\n", + vboxwrapper_msg_prefix(buf, sizeof(buf)) + ); + boinc_temporary_exit(86400, "Architecture incompatibility detected."); + } +#endif + // Initialize VM Hypervisor // retval = vm.initialize();