*** empty log message ***

svn path=/trunk/boinc/; revision=1630
This commit is contained in:
Eric Heien 2003-07-01 21:05:37 +00:00
parent 636bb2ce04
commit 99fa91addd
3 changed files with 6 additions and 2 deletions

View File

@ -240,7 +240,7 @@ int ACTIVE_TASK::start(bool first_time) {
printf("link %s to %s\n", file_path, link_path);
}
if (file_ref.copy_file) {
retval = boinc_copy(buf, link_path);
retval = boinc_copy(file_path, link_path);
if (retval) {
msg_printf(wup->project, MSG_ERROR, "Can't copy %s to %s", file_path, link_path);
fclose(f);

View File

@ -632,6 +632,7 @@ static void AllocHashInit(void) {
// Returns the number of bytes, that are not freed (leaks)
static ULONG AllocHashDeinit(void) {
ULONG ulRet = 0;
return 0;
bool bAppend = g_CallstackOutputType != ACOutput_XML;
AllocCheckFileOpen(bAppend); // open global log-file

View File

@ -326,7 +326,10 @@ int dir_size(char* dirpath, double& size) {
int boinc_copy(char* orig, char* newf) {
#ifdef _WIN32
return !CopyFile(orig, newf, FALSE);
if(CopyFile(orig, newf, FALSE))
return 0;
else
return GetLastError();
#else
char cmd[256];
sprintf(cmd, "cp %s %s", orig, newf);