mirror of https://github.com/adamdruppe/arsd.git
Merge pull request #81 from ReneZwanenburg/master
Fix WriteConsoleW use on 64 bit
This commit is contained in:
commit
83995e4c01
|
@ -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 .. $];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue