call WriteFile with the correct Buffer instead of a NULL pointer

See issue #2121 for more details.

svn path=/trunk/; revision=32053
This commit is contained in:
Christoph von Wittich 2008-01-30 12:33:28 +00:00
parent c9b8e73e23
commit 07c489c7d2

View file

@ -253,6 +253,7 @@ static BOOL WriteEncodedText(HANDLE hFile, LPCWSTR pszText, DWORD dwTextLen, int
buffer[i+0] = buffer[i+1];
buffer[i+1] = b;
}
pBytes = (LPBYTE) &buffer[dwPos];
dwPos += dwByteCount / sizeof(WCHAR);
break;