Changeset 43436 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 26, 2012 10:06:38 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80942
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp
r43428 r43436 436 436 } 437 437 } 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)); 459 440 if (RTStrStr((char*)pBuf, "LPT")) 460 441 {
Note:
See TracChangeset
for help on using the changeset viewer.