diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2024-03-03 00:47:41 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2024-03-03 00:47:41 +0000 |
commit | 905e8b1cc38c830f3ed2e31c90562b311b356c30 (patch) | |
tree | 069e83a34af27a0c16cfcd8188c9ff0e8bb96bf7 | |
parent | 2b12a097244043ca7b8f0405974830ce794820e0 (diff) |
update runscript_dll.c and runscript.dll
git-svn-id: svn://tug.org/texlive/trunk@70364 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Build/source/texk/texlive/windows_wrapper/runscript.dll | bin | 9728 -> 9728 bytes | |||
-rw-r--r-- | Build/source/texk/texlive/windows_wrapper/runscript_dll.c | 10 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/texk/texlive/windows_wrapper/runscript.dll b/Build/source/texk/texlive/windows_wrapper/runscript.dll Binary files differindex d9ae8d7ee36..c8536f6b47d 100755 --- a/Build/source/texk/texlive/windows_wrapper/runscript.dll +++ b/Build/source/texk/texlive/windows_wrapper/runscript.dll diff --git a/Build/source/texk/texlive/windows_wrapper/runscript_dll.c b/Build/source/texk/texlive/windows_wrapper/runscript_dll.c index da658c10e5c..c974cbbdc6b 100644 --- a/Build/source/texk/texlive/windows_wrapper/runscript_dll.c +++ b/Build/source/texk/texlive/windows_wrapper/runscript_dll.c @@ -39,7 +39,15 @@ __declspec(dllexport) int dllrunscript( int argc, char *argv[] ) char *fp; if (argc) { - k = SearchPath(NULL, argv[0], ".exe", 260, infile, &fp); + char *pp; + char ppp[260]; + strcpy(ppp, argv[0]); + pp = strrchr(ppp, '.'); + if (!pp || stricmp(pp, ".exe")) { + strcat(ppp, ".exe"); + } + argv[0] = ppp; + k = SearchPath(NULL, argv[0], NULL, 260, infile, &fp); if (!k) DIE("cannot find %s\n", argv[0]); k = GetLongPathNameA(infile, buff, 260); |