parent
bdae39ff24
commit
6890e94952
|
@ -77,12 +77,12 @@ DWORD WINAPI Notepad_plus::monitorFileOnChange(void * params)
|
|||
case WAIT_OBJECT_0 + 1:
|
||||
// We've received a notification in the queue.
|
||||
{
|
||||
DWORD dwAction;
|
||||
CStringW wstrFilename;
|
||||
if (changes.CheckOverflow())
|
||||
printStr(L"Queue overflowed.");
|
||||
else
|
||||
{
|
||||
DWORD dwAction;
|
||||
CStringW wstrFilename;
|
||||
changes.Pop(dwAction, wstrFilename);
|
||||
generic_string fn = wstrFilename.GetString();
|
||||
|
||||
|
|
|
@ -149,7 +149,7 @@ void CReadChangesRequest::ProcessNotification()
|
|||
|
||||
CStringW wstrFilename(fni.FileName, fni.FileNameLength/sizeof(wchar_t));
|
||||
// Handle a trailing backslash, such as for a root directory.
|
||||
if (wstrFilename.Right(1) != L"\\")
|
||||
if (m_wstrDirectory.Right(1) != L"\\")
|
||||
wstrFilename = m_wstrDirectory + L"\\" + wstrFilename;
|
||||
else
|
||||
wstrFilename = m_wstrDirectory + wstrFilename;
|
||||
|
|
Loading…
Reference in New Issue