Skip to content

Commit

Permalink
Merge branch 'master' of ssh://boinc.berkeley.edu/boinc
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Bock committed Mar 4, 2013
2 parents c312dfd + 1915da2 commit ea97ca1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
10 changes: 10 additions & 0 deletions checkin_notes
Original file line number Diff line number Diff line change
Expand Up @@ -7819,3 +7819,13 @@ Charlie 20 Dec 2012
lib/
gui_rpc_client.h
gui_rpc_client_ops.cpp

Rom 20 Dec 2012
- VBOX: Initialize the PATH variable before attempting to check to see if
the system is ready.

samples\vboxwrapper\
vbox.cpp, .h
vboxwrapper.cpp
win_build\
vboxwrapper.vcproj
3 changes: 0 additions & 3 deletions samples/vboxwrapper/vbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ int VBOX_VM::initialize() {
int VBOX_VM::run(double elapsed_time) {
int retval;

retval = initialize();
if (retval) return retval;

if (!is_registered()) {
if (is_hdd_registered()) {
// Handle the case where a previous instance of the same projects VM
Expand Down
11 changes: 11 additions & 0 deletions samples/vboxwrapper/vboxwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,17 @@ int main(int argc, char** argv) {
vboxwrapper_msg_prefix(buf, sizeof(buf))
);

retval = vm.initialize();
if (retval) {
fprintf(
stderr,
"%s failed to initialize VM Hypervisor environment: %d\n",
vboxwrapper_msg_prefix(buf, sizeof(buf)),
retval
);
boinc_finish(retval);
}

// Check to see if the system is in a state in which we expect to be able to run
// VirtualBox successfully. Sometimes the system is in a wierd state after a
// reboot and the system needs a little bit of time.
Expand Down
9 changes: 5 additions & 4 deletions win_build/vboxwrapper.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Version="8.00"
Name="vboxwrapper"
ProjectGUID="{F243B93C-73CB-44E7-9BDC-847BB95C27CA}"
RootNamespace="vboxwrapper"
>
<Platforms>
<Platform
Expand Down Expand Up @@ -81,13 +82,13 @@
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libcmt.lib libcpmt.lib kernel32.lib user32.lib gdi32.lib ole32.lib wsock32.lib psapi.lib"
OutputFile=".\Build\$(PlatformName)\$(ConfigurationName)\vboxwrapper_26013_windows_intelx86.exe"
OutputFile=".\Build\$(PlatformName)\$(ConfigurationName)\vboxwrapper_26014_windows_intelx86.exe"
LinkIncremental="0"
SuppressStartupBanner="true"
IgnoreAllDefaultLibraries="true"
DelayLoadDLLs=""
GenerateDebugInformation="true"
ProgramDatabaseFile=".\Build\$(PlatformName)\$(ConfigurationName)\vboxwrapper_26013_windows_intelx86.pdb"
ProgramDatabaseFile=".\Build\$(PlatformName)\$(ConfigurationName)\vboxwrapper_26014_windows_intelx86.pdb"
SubSystem="2"
TargetMachine="1"
/>
Expand Down Expand Up @@ -182,13 +183,13 @@
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libcmt.lib libcpmt.lib kernel32.lib user32.lib gdi32.lib ole32.lib wsock32.lib psapi.lib"
OutputFile=".\Build\$(PlatformName)\$(ConfigurationName)\vboxwrapper_26013_windows_x86_64.exe"
OutputFile=".\Build\$(PlatformName)\$(ConfigurationName)\vboxwrapper_26014_windows_x86_64.exe"
LinkIncremental="0"
SuppressStartupBanner="true"
IgnoreAllDefaultLibraries="true"
DelayLoadDLLs=""
GenerateDebugInformation="true"
ProgramDatabaseFile=".\Build\$(PlatformName)\$(ConfigurationName)\vboxwrapper_26013_windows_x86_64.pdb"
ProgramDatabaseFile=".\Build\$(PlatformName)\$(ConfigurationName)\vboxwrapper_26014_windows_x86_64.pdb"
SubSystem="2"
TargetMachine="17"
/>
Expand Down

0 comments on commit ea97ca1

Please sign in to comment.