Mercurial > octave-nkf
diff src/sysdep.cc @ 13751:be7ff59cbc7a
Fix octinterp DLL searching on Win32.
* sysdep.cc (w32_set_octave_home): Also search for liboctinterp-0.dll.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Tue, 25 Oct 2011 22:35:55 +0100 |
parents | 4cca76e15876 |
children | 80b30e186b73 |
line wrap: on
line diff
--- a/src/sysdep.cc Tue Oct 25 09:46:38 2011 -0700 +++ b/src/sysdep.cc Tue Oct 25 22:35:55 2011 +0100 @@ -111,6 +111,9 @@ while (true) { HMODULE hMod = GetModuleHandle ("octinterp"); + if (! hMod) + hMod = GetModuleHandle ("liboctinterp-0"); + int status = GetModuleFileName (hMod, &bin_dir[0], n); if (status < n)