mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 01:03:16 +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
1 changed files with 1 additions and 0 deletions
|
@ -253,6 +253,7 @@ static BOOL WriteEncodedText(HANDLE hFile, LPCWSTR pszText, DWORD dwTextLen, int
|
||||||
buffer[i+0] = buffer[i+1];
|
buffer[i+0] = buffer[i+1];
|
||||||
buffer[i+1] = b;
|
buffer[i+1] = b;
|
||||||
}
|
}
|
||||||
|
pBytes = (LPBYTE) &buffer[dwPos];
|
||||||
dwPos += dwByteCount / sizeof(WCHAR);
|
dwPos += dwByteCount / sizeof(WCHAR);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue