VirtualBox

Changeset 45177 in vbox for trunk/src


Ignore:
Timestamp:
Mar 25, 2013 4:32:51 PM (12 years ago)
Author:
vboxsync
Message:

A couple of PDMCritSectRw init fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMCritSect.cpp

    r45152 r45177  
    248248                pCritSect->Core.pValidatorRead  = NULL;
    249249                pCritSect->Core.pValidatorWrite = NULL;
    250 #ifdef PDMCRITSECT_STRICT
     250#ifdef PDMCRITSECTRW_STRICT
    251251# ifdef RT_LOCK_STRICT_ORDER
    252252                RTLOCKVALCLASS hClass = RTLockValidatorClassForSrcPos(RT_SRC_POS_ARGS, "%s", pszName);
     
    265265                     * Initialize the structure (first bit is c&p from RTCritSectRwInitEx).
    266266                     */
    267                     pCritSect->Core.u32Magic             = RTCRITSECTRW_MAGIC_DEAD;
     267                    pCritSect->Core.u32Magic             = RTCRITSECTRW_MAGIC;
    268268                    pCritSect->Core.fNeedReset           = false;
    269269                    pCritSect->Core.u64State             = 0;
     
    271271                    pCritSect->Core.cWriterReads         = 0;
    272272                    pCritSect->Core.cWriteRecursions     = 0;
    273                     pCritSect->Core.pValidatorWrite      = NULL;
    274                     pCritSect->Core.pValidatorRead       = NULL;
    275273#if HC_ARCH_BITS == 32
    276274                    pCritSect->Core.HCPtrPadding         = NIL_RTHCPTR;
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