VirtualBox

Ignore:
Timestamp:
Apr 9, 2013 6:30:45 PM (12 years ago)
Author:
vboxsync
Message:

IPRT: Better way of finding QuantumEnd and DpcQueueDepth.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/nt/ntBldSymDb.cpp

    r45440 r45443  
    260260    {
    261261        const char *pszStructName = figureCStructName(&g_aStructs[i]);
    262         RTStrmPrintf(pOut, "    RTNTSDBTYPE_%-20s %s\n", pszStructName, pszStructName);
     262        RTStrmPrintf(pOut, "    RTNTSDBTYPE_%-20s %s;\n", pszStructName, pszStructName);
    263263    }
    264264    RTStrmPrintf(pOut,
     
    273273                 "\n"
    274274                 "#ifndef RTNTSDB_NO_DATA\n"
    275                  "const RTNTSDBSET g_rtNtSdbSets[] = \n"
     275                 "const RTNTSDBSET g_artNtSdbSets[] = \n"
    276276                 "{\n");
    277277    PMYSET pSet;
     
    299299                     pSet->OsVerInfo.uCsdNo,
    300300                     pSet->OsVerInfo.uBuildNo);
    301         for (uint32_t i = 0; i < RT_ELEMENTS(g_aStructs); i++)
    302         {
    303             const char *pszStructName = figureCStructName(&g_aStructs[i]);
     301        for (uint32_t i = 0; i < RT_ELEMENTS(pSet->aStructs); i++)
     302        {
     303            const char *pszStructName = figureCStructName(&pSet->aStructs[i]);
    304304            RTStrmPrintf(pOut,
    305305                         "        /* .%s = */\n"
    306306                         "        {\n", pszStructName);
    307             PMYMEMBER paMembers = g_aStructs[i].paMembers;
    308             for (uint32_t j = 0; j < g_aStructs->cMembers; j++)
     307            PMYMEMBER paMembers = pSet->aStructs[i].paMembers;
     308            for (uint32_t j = 0; j < pSet->aStructs[i].cMembers; j++)
    309309            {
    310310                const char *pszMemName = figureCMemberName(&paMembers[j]);
     
    329329                 "\n");
    330330
    331     RTStrmPrintf(pOut, "\n#endif\n");
     331    RTStrmPrintf(pOut, "\n#endif\n\n");
    332332}
    333333
     
    387387            if (iDiff > 0 || pInsertBefore->enmArch > pSet->enmArch)
    388388            {
    389                 RTListPrepend(&pInsertBefore->ListEntry, &pSet->ListEntry);
     389                RTListNodeInsertBefore(&pInsertBefore->ListEntry, &pSet->ListEntry);
    390390                return RTEXITCODE_SUCCESS;
    391391            }
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