aboutsummaryrefslogtreecommitdiff
path: root/tccpe.c
diff options
context:
space:
mode:
authorgrischka <grischka>2009-07-18 22:07:33 +0200
committergrischka <grischka>2009-07-18 22:07:33 +0200
commit94ae3984b0d4d3d78975d3bd48810cd5b6381618 (patch)
treef00293d6b3ed90f816e3c474ae2d08fa4bae1a7e /tccpe.c
parent1df662c1b094d250db0501cf31db83dc5f9060e4 (diff)
downloadtinycc-94ae3984b0d4d3d78975d3bd48810cd5b6381618.tar.gz
tinycc-94ae3984b0d4d3d78975d3bd48810cd5b6381618.tar.bz2
tccpe: set tcc_lib_path from DLL
Diffstat (limited to 'tccpe.c')
-rw-r--r--tccpe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccpe.c b/tccpe.c
index fe87919..652ab06 100644
--- a/tccpe.c
+++ b/tccpe.c
@@ -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;