Fix bug #5525: Windows XP doesn't shut down with LyX open

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33077 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-01-17 23:01:48 +00:00
parent ff41842b03
commit 51d70699ef
4 changed files with 6 additions and 6 deletions

View File

@ -66,7 +66,7 @@ using ::boost::scoped_ptr;
namespace lyx {
// Keep the linker happy on Windows
void emergencyCleanup()
void lyx_exit(int)
{}
namespace support {

View File

@ -38,7 +38,7 @@ using namespace std;
namespace lyx {
void emergencyCleanup();
void lyx_exit(int);
namespace support {
namespace os {
@ -194,7 +194,7 @@ BOOL terminate_handler(DWORD event)
if (event == CTRL_CLOSE_EVENT
|| event == CTRL_LOGOFF_EVENT
|| event == CTRL_SHUTDOWN_EVENT) {
lyx::emergencyCleanup();
lyx::lyx_exit(1);
return TRUE;
}
return FALSE;

View File

@ -72,7 +72,7 @@ using namespace std;
namespace lyx {
void emergencyCleanup();
void lyx_exit(int);
namespace support {
namespace os {
@ -88,7 +88,7 @@ BOOL terminate_handler(DWORD event)
if (event == CTRL_CLOSE_EVENT
|| event == CTRL_LOGOFF_EVENT
|| event == CTRL_SHUTDOWN_EVENT) {
lyx::emergencyCleanup();
lyx::lyx_exit(1);
return TRUE;
}
return FALSE;

View File

@ -57,7 +57,7 @@ Messages & getGuiMessages()
// Keep the linker happy on Windows
void emergencyCleanup()
void lyx_exit(int)
{}