Searched refs:tfrom (Results 1 – 1 of 1) sorted by relevance
2703 TCHAR *tfrom=NULL,*tto; in WIN32_rename() local2709 tfrom = (TCHAR *)from; in WIN32_rename()2715 tfrom = (TCHAR *)malloc(sizeof(TCHAR)*(flen+tlen)); in WIN32_rename()2716 if (tfrom==NULL) goto err; in WIN32_rename()2717 tto=tfrom+flen; in WIN32_rename()2719 if (!MultiByteToWideChar(CP_ACP,0,from,flen,(WCHAR *)tfrom,flen)) in WIN32_rename()2721 for (i=0;i<flen;i++) tfrom[i]=(TCHAR)from[i]; in WIN32_rename()2728 if (MoveFile(tfrom,tto)) goto ok; in WIN32_rename()2732 if (DeleteFile(tto) && MoveFile(tfrom,tto)) in WIN32_rename()2745 if (tfrom!=NULL && tfrom!=(TCHAR *)from) free(tfrom); in WIN32_rename()