(dword)pcftpmsg);
lptstr lpmsg = null;
dword dwerr = getlasterror();
formatftperror(dwerr, &lpmsg);
trace("ftpgetfile error with %d--%s\n", dwerr, lpmsg);
localfree(lpmsg);
lpmsg = null;
if(pcftpmsg->getcurrentftpwnd() != null)
{
::postmessage( pcftpmsg->getcurrentftpwnd(),
pcftpmsg->getregistermsghandle(),
cftpclientctrl::ftp_end,
dwerr);
}
else if(pcftpmsg->getcurrentftpthread() != 0)
{
::postthreadmessage(pcftpmsg->getcurrentftpthread(),
pcftpmsg->getregistermsghandle(),