1818#include < map>
1919#include < algorithm>
2020
21- #ifdef BUILD_SETUP
22- #define DOC_PATH L" "
23- #else
24- #define DOC_PATH L" ..\\ ..\\ Docs\\ Help\\ "
25- #endif
26-
2721// /////////////////////////////////////////////////////////////////////////////
2822
2923// Read/Write lock for accessing the settings. Can't be acquired recursively. Only the main UI thread (the one displaying the settings UI)
@@ -2185,7 +2179,7 @@ bool HasHelp( void )
21852179 GetModuleFileName (_AtlBaseModule.GetResourceInstance (),path,_countof (path));
21862180 *PathFindFileName (path)=0 ;
21872181 wchar_t topic[_MAX_PATH];
2188- Sprintf (topic,_countof (topic),L" %s% sOpenShell.chm" ,path, GetDocRelativePath () );
2182+ Sprintf (topic,_countof (topic),L" %sOpenShell.chm" ,path);
21892183 return (GetFileAttributes (topic)!=INVALID_FILE_ATTRIBUTES);
21902184}
21912185
@@ -2195,7 +2189,7 @@ void ShowHelp( void )
21952189 GetModuleFileName (_AtlBaseModule.GetResourceInstance (),path,_countof (path));
21962190 *PathFindFileName (path)=0 ;
21972191 wchar_t topic[_MAX_PATH];
2198- Sprintf (topic,_countof (topic),L" %s% sOpenShell.chm::/%s.html" ,path, GetDocRelativePath () ,PathFindFileName (g_SettingsManager.GetRegPath ()));
2192+ Sprintf (topic,_countof (topic),L" %sOpenShell.chm::/%s.html" ,path,PathFindFileName (g_SettingsManager.GetRegPath ()));
21992193 HtmlHelp (GetDesktopWindow (),topic,HH_DISPLAY_TOPIC,NULL );
22002194}
22012195
0 commit comments