Lines Matching defs:tfrom
2788 TCHAR *tfrom=NULL,*tto;
2794 tfrom = (TCHAR *)from;
2800 tfrom = (TCHAR *)malloc(sizeof(TCHAR)*(flen+tlen));
2801 if (tfrom==NULL) goto err;
2802 tto=tfrom+flen;
2804 if (!MultiByteToWideChar(CP_ACP,0,from,flen,(WCHAR *)tfrom,flen))
2806 for (i=0;i<flen;i++) tfrom[i]=(TCHAR)from[i];
2813 if (MoveFile(tfrom,tto)) goto ok;
2817 if (DeleteFile(tto) && MoveFile(tfrom,tto))
2830 if (tfrom!=NULL && tfrom!=(TCHAR *)from) free(tfrom);