VirtualBox

Ignore:
Timestamp:
Aug 21, 2008 11:13:47 PM (16 years ago)
Author:
vboxsync
Message:

VBoxControl: Added status/error information, fixed return value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r11114 r11563  
    533533            xres &= ~0x7;
    534534
     535            RTPrintf("Setting resolution of display %d to %dx%dx%d ...", scr, xres, yres, bpp);
    535536            ResizeDisplayDevice(scr, xres, yres, bpp);
    536         }
    537     }
     537            RTPrintf("done.\n");
     538        }
     539        else VBoxControlError("Error retrieving API for display change!");
     540    }
     541    else VBoxControlError("Error retrieving handle to user32.dll!");
     542   
    538543    return 0;
    539544}
     
    858863        RegCloseKey(hkeyVideo);
    859864    }
     865   
     866    return 0;
    860867}
    861868
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette