Index: src/ch/CustomCopyDlg.cpp =================================================================== diff -u -N -rbd08c279240bac9e7902f8da6a9251e0252ec324 -r0c09e62b3e90352413f389fdfe4b9bc49a1bcc89 --- src/ch/CustomCopyDlg.cpp (.../CustomCopyDlg.cpp) (revision bd08c279240bac9e7902f8da6a9251e0252ec324) +++ src/ch/CustomCopyDlg.cpp (.../CustomCopyDlg.cpp) (revision 0c09e62b3e90352413f389fdfe4b9bc49a1bcc89) @@ -923,6 +923,7 @@ void CCustomCopyDlg::OnImportButton() { boost::shared_array spBuffer; + ulong_t ulSize = 0; CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, GetResManager().LoadString(IDS_FLTALLFILTER_STRING)); @@ -942,7 +943,7 @@ return; } - ulong_t ulSize = boost::numeric_cast(llSize); + ulSize = boost::numeric_cast(llSize); spBuffer.reset(new BYTE[ulSize + 3]); // guarantee that we have null at the end of the string (3 bytes to compensate for possible odd number of bytes and for unicode) memset(spBuffer.get(), 0, ulSize + 3);