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