mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
revert last change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16829 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2b1740d92d
commit
0e85d5b1c0
@ -22,9 +22,6 @@
|
||||
#include "support/path.h"
|
||||
|
||||
#include "debug.h"
|
||||
#include "gettext.h"
|
||||
|
||||
#include "frontends/Alert.h"
|
||||
|
||||
#include <boost/assert.hpp>
|
||||
|
||||
@ -346,16 +343,16 @@ GetFolderPath::GetFolderPath()
|
||||
{
|
||||
folder_module_ = LoadLibrary("shfolder.dll");
|
||||
if (!folder_module_) {
|
||||
frontend::Alert::error(_("System file not found"),
|
||||
_("Unable to load shfolder.dll\nPlease install."));
|
||||
lyxerr << "Unable to load shfolder.dll\nPlease install."
|
||||
<< std::endl;
|
||||
bail_out();
|
||||
}
|
||||
|
||||
folder_path_func_ = reinterpret_cast<function_pointer>(::GetProcAddress(folder_module_, "SHGetFolderPathA"));
|
||||
if (folder_path_func_ == 0) {
|
||||
frontend::Alert::error(_("System function not found"),
|
||||
_("Unable to find SHGetFolderPathA in shfolder.dll\n"
|
||||
"Don't know how to proceed. Sorry."));
|
||||
lyxerr << "Unable to find SHGetFolderPathA in shfolder.dll\n"
|
||||
"Don't know how to proceed. Sorry."
|
||||
<< std::endl;
|
||||
bail_out();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user