#include "precomp.h"
+#include <commdlg.h>
+#include <cderr.h>
+
static DWORD
GetTextFromListView(PMAIN_WND_INFO Info,
TCHAR Text[500],
if(hFile != INVALID_HANDLE_VALUE)
{
TCHAR LVText[500];
- TCHAR newl = _T('\n');
+ TCHAR newl[2] = {_T('\r'), _T('\n')};
TCHAR tab = _T('\t');
DWORD dwTextLength, dwWritten;
INT NumListedServ = 0;
LVText,
i,
k);
- if (LVText != NULL)
+ if (dwTextLength != 0)
{
WriteFile(hFile,
LVText,
}
}
WriteFile(hFile,
- &newl,
- sizeof(TCHAR),
+ newl,
+ sizeof(newl),
&dwWritten,
NULL);
}