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; }