Index: src/ch/Device IO.h =================================================================== diff -u -r16a61d123d45e60dea731a6620f6f47acccd8c43 -rad0fb7556efa2b2c35acc3ce6e4901b3e8c992dd --- src/ch/Device IO.h (.../Device IO.h) (revision 16a61d123d45e60dea731a6620f6f47acccd8c43) +++ src/ch/Device IO.h (.../Device IO.h) (revision ad0fb7556efa2b2c35acc3ce6e4901b3e8c992dd) @@ -19,15 +19,17 @@ #ifndef __DEVICEIO_H__ #define __DEVICEIO_H__ +#include + // only NT static bool GetSignature(LPCTSTR lpszDrive, LPTSTR lpszBuffer, int iSize) { - std::auto_ptr szMapping(new TCHAR[1024]); - std::auto_ptr szQuery(new TCHAR[16384]); - std::auto_ptr szSymbolic(new TCHAR[1024]); + boost::scoped_array szMapping(new TCHAR[1024]); + boost::scoped_array szQuery(new TCHAR[16384]); + boost::scoped_array szSymbolic(new TCHAR[1024]); // read mappings - if (QueryDosDevice(lpszDrive, szMapping.get(), 1024) == 0) + if(QueryDosDevice(lpszDrive, szMapping.get(), 1024) == 0) return false; // search for all, to find out in which string is the signature