VirtualBox

Changeset 43436 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 26, 2012 10:06:38 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80942
Message:

Devices/Parallel: Increased instrumentation for debugging parallel port issue with user. Change will be reverted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp

    r43428 r43436  
    436436            }
    437437        }
    438         if(!pBuf)
    439         {
    440             LogFlowFunc(("No Memory to save ParportString\n"));
    441             /* Trying once more  with fixed length, assuming friendly name
    442              * will not be bigger than 2048
    443              */
    444             pBuf = (uint8_t *)RTMemAlloc(2048);
    445             if (!pBuf)
    446             {
    447                 LogFlowFunc(("Fixed allocation failed\n"));
    448                 return VERR_NO_MEMORY;
    449             }
    450             if (!SetupDiGetDeviceRegistryProperty(hDevInfo, &DeviceInfoData, SPDRP_FRIENDLYNAME,
    451                                                  (PDWORD)&dwDataType, (uint8_t *)pBuf,
    452                                                  2048, NULL))
    453             {
    454                 LogFlowFunc(("GetDevProp failed with ERR = %d\n", GetLastError()));
    455                 return VERR_GENERAL_FAILURE;
    456 
    457             }
    458         }
     438        if(pBuf)
     439            LogFlowFunc(("Got Device Entity %s\n", pBuf));
    459440        if (RTStrStr((char*)pBuf, "LPT"))
    460441        {
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