mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 00:43:09 +00:00
[CONUTILS] Use const string pointers for strings that are not modified by the functions.
This commit is contained in:
parent
dff2d58693
commit
4aaf54e0a4
7 changed files with 60 additions and 46 deletions
|
@ -232,8 +232,8 @@ ConStreamSetCacheCodePage(
|
|||
*/
|
||||
Mode = Stream->Mode;
|
||||
CON_STREAM_SET_MODE(Stream, Mode, CacheCodePage);
|
||||
return TRUE;
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
HANDLE
|
||||
|
@ -277,7 +277,7 @@ ConStreamSetOSHandle(
|
|||
if (!Stream->fStream)
|
||||
return FALSE;
|
||||
|
||||
int fdOut = _open_osfhandle(Handle, _O_TEXT /* FIXME! */);
|
||||
int fdOut = _open_osfhandle((intptr_t)Handle, _O_TEXT /* FIXME! */);
|
||||
FILE* fpOut = _fdopen(fdOut, "w");
|
||||
*Stream->fStream = *fpOut;
|
||||
/// setvbuf(Stream->fStream, NULL, _IONBF, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue