Project JEDI - Issue Tracker - JEDI VCL
Viewing Issue Advanced Details
5913 00 JVCL Components minor always 2012-06-18 06:50 2012-09-10 14:15
bflorac  
obones  
normal  
resolved 3.45  
fixed  
none    
none 3.46  
0005913: setupaip.pas missing default define for SP_DEVICE_INTERFACE_DETAIL_DATA
setupapi.pas should include a define for SP_DEVICE_INTERFACE_DETAIL_DATA that aligns with the default of ansi or unicode. When using TSPDeviceInterfaceData one need set the cbSize to the correct value. This needs to match with the define size. (ansi = 5, unicode = 6).


I added these at line 890
  {$IFDEF UNICODE}
  TSPDeviceInterfaceDetailData = TSPDeviceInterfaceDetailDataW;
  PSPDeviceInterfaceDetailData = PSPDeviceInterfaceDetailDataW;
  SP_DEVICE_INTERFACE_DETAIL_DATA = SP_DEVICE_INTERFACE_DETAIL_DATA_W; //WRF
  {$ELSE}
  TSPDeviceInterfaceDetailData = TSPDeviceInterfaceDetailDataA;
  PSPDeviceInterfaceDetailData = PSPDeviceInterfaceDetailDataA;
  SP_DEVICE_INTERFACE_DETAIL_DATA = SP_DEVICE_INTERFACE_DETAIL_DATA_A; //WRF
  {$ENDIF UNICODE}

I see setupapi.pas was changed to jvsetupapi.pas. I assume it would need the same fix.
Issue History
2012-06-18 06:50 bflorac New Issue
2012-06-18 11:35 obones Note Added: 0020012
2012-06-18 11:35 obones Status new => resolved
2012-06-18 11:35 obones Fixed in Version => Daily / SVN
2012-06-18 11:35 obones Resolution open => fixed
2012-06-18 11:35 obones Assigned To => obones
2012-09-10 14:15 obones Fixed in Version Daily / SVN => 3.46

Notes
(0020012)
obones   
2012-06-18 11:35   
This is now in SVN