From b963d030302b7109783a947593d0f88a62352318 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Wed, 19 Jun 2002 18:45:43 +0000 Subject: [PATCH] Fixed soft link bug. svn path=/trunk/boinc/; revision=116 --- api/api.C | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/api/api.C b/api/api.C index b819729fed..f2063e5449 100644 --- a/api/api.C +++ b/api/api.C @@ -24,13 +24,14 @@ #ifdef WIN32 #include #include +#include "windows_cpp.h" #else #include #endif #include #include -#include "../sched/parse.h" +#include "parse.h" #include "api.h" int MFILE::open(char* path, char* mode) { @@ -235,7 +236,10 @@ int boinc_resolve_link(char *file_name, char *resolved_name) // Open the file and load the first line fp = fopen( file_name, "r" ); - if (!fp) return -1; + if (!fp) { + strcpy( resolved_name, file_name ); + return -1; + } rewind( fp ); fgets(buf, 512, fp); fclose( fp );