Skip to content

Commit

Permalink
Fixed a code in ReadDirectoryChangesPrivate.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SinghRajenM authored and donho committed Apr 21, 2018
1 parent 95220ce commit ceab192
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PowerEditor/src/NppIO.cpp
Expand Up @@ -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();

Expand Down
Expand Up @@ -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;
Expand Down

0 comments on commit ceab192

Please sign in to comment.