From 0130f729ffd94b37dc4d0de836bf8589bdbb1ef8 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 4 Nov 1997 10:17:01 +0000 Subject: [PATCH] Azzerato il path di easydoc se per fortuna non esiste il .exe relativo! git-svn-id: svn://10.65.10.50/trunk@5528 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg2106.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cg/cg2106.cpp b/cg/cg2106.cpp index 36c0ba424..d0ffc03db 100755 --- a/cg/cg2106.cpp +++ b/cg/cg2106.cpp @@ -394,7 +394,7 @@ bool TPrimanota_application::easydoc_installed() // where is EasyDoc installed? TFilename szBuf; - int entrylen = GetPrivateProfileString("Easydoc", "Path", "C:\\EASYDOC", + int entrylen = GetPrivateProfileString("Easydoc", "Path", "\\EASYDOC", szBuf.get_buffer(), szBuf.size(), "EasyDoc.ini"); // EasyDoc there isn't @@ -408,6 +408,8 @@ bool TPrimanota_application::easydoc_installed() // is EasyDoc present? bool ok = fexist(_EasyDocPath); + if (!ok) + _EasyDocPath.cut(0); return ok; }