--- v2.0\lib\proj-4.8.0\src\pj_open_lib.c 2014-07-30 07:52:23 +0000 +++ Main\lib\proj-4.8.0\src\pj_open_lib.c 2014-10-03 12:45:42 +0000 @@ -171,6 +171,26 @@ return(fid); #else - return NULL; + fid = fopen(name, mode); + if (fid) + errno = 0; + + /* If none of those work and we have a search path, try it */ + if (!fid && path_count > 0) + { + for (i = 0; fid == NULL && i < path_count; i++) + { + sprintf(fname, "%s%c%s", search_path[i], DIR_CHAR, name); + sysname = fname; + fid = fopen (sysname, mode); + } + if (fid) + errno = 0; + } + + if( ctx->last_errno == 0 && errno != 0 ) + pj_ctx_set_errno( ctx, errno ); + + return (fid); #endif /* _WIN32_WCE */ }