mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 21:34:58 +02:00
[BUG_FIXED] Fix a crash bug while file not found for -qf argument on start up.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1331 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
b1b6f01f34
commit
b1d9ffe83f
@ -237,11 +237,15 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR *cmdLin
|
|||||||
{
|
{
|
||||||
std::string destStr = dest;
|
std::string destStr = dest;
|
||||||
generic_string fileName(destStr.begin(), destStr.end());
|
generic_string fileName(destStr.begin(), destStr.end());
|
||||||
|
|
||||||
|
if (::PathFileExists(fileName.c_str()))
|
||||||
|
{
|
||||||
_userQuote = getFileContent(fileName.c_str());
|
_userQuote = getFileContent(fileName.c_str());
|
||||||
if (_userQuote != "")
|
if (_userQuote != "")
|
||||||
_notepad_plus_plus_core.showQuote(_userQuote.c_str(), "Anonymous #999", false);
|
_notepad_plus_plus_core.showQuote(_userQuote.c_str(), "Anonymous #999", false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (cmdLineParams->_showLoadingTime)
|
if (cmdLineParams->_showLoadingTime)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user