Re: buffer check in comdlg

2006-04-07 Thread Aric Stewart
Drat bitten by formatting again. And i thought i checked but i realized i checked and then reedited the file and my setting returned to default. Should i redo the formatting and resubmit? -aric Robert Shearman wrote: Aric Stewart wrote: if(fodInfos->unicode) { LPOPENFILENAMEW ofn =

Re: buffer check in comdlg

2006-04-06 Thread Robert Shearman
Aric Stewart wrote: if(fodInfos->unicode) { LPOPENFILENAMEW ofn = fodInfos->ofnInfos; -strcpyW( ofn->lpstrFile, lpstrPathSpec); -memcpy( ofn->lpstrFile + nSizePath, lpstrFileList, sizeUsed*sizeof(WCHAR) ); + if (nSizePath+sizeUsed > ofn->nMaxFile) + { +