VirtualBox

Changeset 10802 in vbox for trunk


Ignore:
Timestamp:
Jul 22, 2008 9:10:18 AM (16 years ago)
Author:
vboxsync
Message:

Main, Guest Properties: attempt to fix the build break on Windows hosts due to SafeArray of ULONG64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/array.h

    r10709 r10802  
    329329    static VARTYPE VarType() { return VT_UI4; }
    330330    static void Copy (ULONG aFrom, ULONG &aTo) { aTo = aFrom; }
     331};
     332
     333template<>
     334struct SafeArrayTraits <LONG64>
     335{
     336protected:
     337
     338    static VARTYPE VarType() { return VT_I8; }
     339    static void Copy (LONG64 aFrom, LONG64 &aTo) { aTo = aFrom; }
     340};
     341
     342template<>
     343struct SafeArrayTraits <ULONG64>
     344{
     345protected:
     346
     347    static VARTYPE VarType() { return VT_UI8; }
     348    static void Copy (ULONG64 aFrom, ULONG64 &aTo) { aTo = aFrom; }
    331349};
    332350
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