VirtualBox

Changeset 5228 in vbox for trunk


Ignore:
Timestamp:
Oct 10, 2007 4:18:40 PM (17 years ago)
Author:
vboxsync
Message:

use the right magic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/semeventmulti-r0drv-linux.c

    r5226 r5228  
    3939typedef struct RTSEMEVENTMULTIINTERNAL
    4040{
    41     /** Magic value (RTSEMEVENT_MAGIC). */
     41    /** Magic value (RTSEMEVENTMULTI_MAGIC). */
    4242    uint32_t volatile   u32Magic;
    4343    /** The object status - !0 when signaled and 0 when reset. */
     
    5454    if (pThis)
    5555    {
    56         pThis->u32Magic = RTSEMEVENT_MAGIC;
     56        pThis->u32Magic = RTSEMEVENTMULTI_MAGIC;
    5757        init_waitqueue_head(&pThis->Head);
    5858        *pEventMultiSem = pThis;
     
    7272        return VERR_INVALID_PARAMETER;
    7373    AssertPtrReturn(pThis, VERR_INVALID_PARAMETER);
    74     AssertMsgReturn(pThis->u32Magic == RTSEMEVENT_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
     74    AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
    7575
    7676    /*
     
    9595        return VERR_INVALID_PARAMETER;
    9696    AssertPtrReturn(pThis, VERR_INVALID_PARAMETER);
    97     AssertMsgReturn(pThis->u32Magic == RTSEMEVENT_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
     97    AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
    9898
    9999    /*
     
    115115        return VERR_INVALID_PARAMETER;
    116116    AssertPtrReturn(pThis, VERR_INVALID_PARAMETER);
    117     AssertMsgReturn(pThis->u32Magic == RTSEMEVENT_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
     117    AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
    118118
    119119    /*
     
    161161
    162162        /* Check if someone destroyed the semaphore while we were waiting. */
    163         if (pThis->u32Magic != RTSEMEVENT_MAGIC)
     163        if (pThis->u32Magic != RTSEMEVENTMULTI_MAGIC)
    164164        {
    165165            rc = VERR_SEM_DESTROYED;
     
    186186        return VERR_INVALID_PARAMETER;
    187187    AssertPtrReturn(pThis, VERR_INVALID_PARAMETER);
    188     AssertMsgReturn(pThis->u32Magic == RTSEMEVENT_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
     188    AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
    189189
    190190    if (pThis->fState)
     
    200200        return VERR_INVALID_PARAMETER;
    201201    AssertPtrReturn(pThis, VERR_INVALID_PARAMETER);
    202     AssertMsgReturn(pThis->u32Magic == RTSEMEVENT_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
     202    AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
    203203
    204204    if (pThis->fState)
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