18
18
#include < map>
19
19
#include < algorithm>
20
20
21
- #ifdef BUILD_SETUP
22
- #define DOC_PATH L" "
23
- #else
24
- #define DOC_PATH L" ..\\ ..\\ Docs\\ Help\\ "
25
- #endif
26
-
27
21
// /////////////////////////////////////////////////////////////////////////////
28
22
29
23
// 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 )
2185
2179
GetModuleFileName (_AtlBaseModule.GetResourceInstance (),path,_countof (path));
2186
2180
*PathFindFileName (path)=0 ;
2187
2181
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);
2189
2183
return (GetFileAttributes (topic)!=INVALID_FILE_ATTRIBUTES);
2190
2184
}
2191
2185
@@ -2195,7 +2189,7 @@ void ShowHelp( void )
2195
2189
GetModuleFileName (_AtlBaseModule.GetResourceInstance (),path,_countof (path));
2196
2190
*PathFindFileName (path)=0 ;
2197
2191
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 ()));
2199
2193
HtmlHelp (GetDesktopWindow (),topic,HH_DISPLAY_TOPIC,NULL );
2200
2194
}
2201
2195
0 commit comments