tccpe: set tcc_lib_path from DLL

This commit is contained in:
grischka
2009-07-18 22:07:33 +02:00
parent 1df662c1b0
commit 94ae3984b0
4 changed files with 10 additions and 33 deletions

View File

@ -1511,7 +1511,7 @@ PUB_FN int pe_load_file(struct TCCState *s1, const char *filename, int fd)
else if (pe_load_res(s1, fp) == 0)
ret = 0;
else if (read_mem(fp, 0, buf, sizeof buf) && 0 == strncmp(buf, "MZ", 2))
ret = pe_load_dll(s1, filename, fp);
ret = pe_load_dll(s1, tcc_basename(filename), fp);
fclose(fp);
}
return ret;