mirror of
https://github.com/reactos/reactos.git
synced 2024-10-03 07:53:49 +00:00
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:
parent
c9b8e73e23
commit
07c489c7d2
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue