diff -r 267902178ad3 -r 3f8caf9ea756 sourcemm/CSmmAPI.cpp --- a/sourcemm/CSmmAPI.cpp Wed May 16 07:26:10 2007 +0000 +++ b/sourcemm/CSmmAPI.cpp Tue May 29 21:53:58 2007 +0000 @@ -456,6 +456,7 @@ { size_t len; char engine_file[PATH_SIZE]; + char engine_path[PATH_SIZE]; char rel_path[PATH_SIZE * 2]; GetFileOfAddress(g_Engine.engine, engine_file, sizeof(engine_file)); @@ -471,9 +472,10 @@ break; } } + abspath(engine_path, engine_file); const char *usepath = g_SmmPath.c_str(); - if (UTIL_Relatize(rel_path, sizeof(rel_path), engine_file, g_SmmPath.c_str())) + if (UTIL_Relatize(rel_path, sizeof(rel_path), engine_path, g_SmmPath.c_str())) { usepath = rel_path; }