VirtualBox

Changeset 106494 in vbox for trunk/include


Ignore:
Timestamp:
Oct 19, 2024 3:06:34 AM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165326
Message:

iprt/nt/nt.h: Corrected the RTNT_IO_STATUS_BLOCK_INITIALIZER macro to deal with the stricter compiler. jiraref:VBP-1171

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/nt.h

    r106420 r106494  
    324324 * @{ */
    325325/** Indicates that we're targeting native NT in the current source. */
    326 #define RTNT_USE_NATIVE_NT              1
     326#define RTNT_USE_NATIVE_NT                  1
    327327/** Initializes a IO_STATUS_BLOCK. */
    328 #define RTNT_IO_STATUS_BLOCK_INITIALIZER  { STATUS_FAILED_DRIVER_ENTRY, ~(uintptr_t)42 }
     328#define RTNT_IO_STATUS_BLOCK_INITIALIZER    { { STATUS_FAILED_DRIVER_ENTRY }, ~(uintptr_t)42 }
    329329/** Reinitializes a IO_STATUS_BLOCK. */
    330330#define RTNT_IO_STATUS_BLOCK_REINIT(a_pIos) \
    331331    do { (a_pIos)->Status = STATUS_FAILED_DRIVER_ENTRY; (a_pIos)->Information = ~(uintptr_t)42; } while (0)
    332332/** Similar to INVALID_HANDLE_VALUE in the Windows environment. */
    333 #define RTNT_INVALID_HANDLE_VALUE         ( (HANDLE)~(uintptr_t)0 )
     333#define RTNT_INVALID_HANDLE_VALUE           ( (HANDLE)~(uintptr_t)0 )
    334334/** Constant UNICODE_STRING initializer. */
    335 #define RTNT_CONSTANT_UNISTR(a_String)   { sizeof(a_String) - sizeof(WCHAR), sizeof(a_String), (WCHAR *)a_String }
     335#define RTNT_CONSTANT_UNISTR(a_String)      { sizeof(a_String) - sizeof(WCHAR), sizeof(a_String), (WCHAR *)a_String }
    336336/** Null UNICODE_STRING initializer. */
    337 #define RTNT_NULL_UNISTR()               { 0, 0, NULL }
     337#define RTNT_NULL_UNISTR()                  { 0, 0, NULL }
    338338
    339339/** Declaration wrapper for NT apis.
Note: See TracChangeset for help on using the changeset viewer.

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