Merge pull request #81 from ReneZwanenburg/master

Fix WriteConsoleW use on 64 bit
This commit is contained in:
Adam D. Ruppe 2016-04-04 10:00:19 -04:00
commit 83995e4c01
1 changed files with 1 additions and 1 deletions

View File

@ -1092,7 +1092,7 @@ http://msdn.microsoft.com/en-us/library/windows/desktop/ms683193%28v=vs.85%29.as
wstring writeBufferw = to!wstring(writeBuffer);
while(writeBufferw.length) {
DWORD written;
WriteConsoleW(hConsole, writeBufferw.ptr, writeBufferw.length, &written, null);
WriteConsoleW(hConsole, writeBufferw.ptr, cast(DWORD)writeBufferw.length, &written, null);
writeBufferw = writeBufferw[written .. $];
}