Commit b373c8ec authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

Minor clean up of win_utf8_io.

Patch-from: lvqcl <lvqcl.mail@gmail.com>
parent d6d33e21
......@@ -58,7 +58,7 @@ int unlink_utf8(const char *filename);
int rename_utf8(const char *oldname, const char *newname);
size_t strlen_utf8(const char *str);
int win_get_console_width(void);
int print_console(FILE *stream, const wchar_t *text, uint32_t len);
int print_console(FILE *stream, const wchar_t *text, size_t len);
HANDLE WINAPI CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile);
#ifdef __cplusplus
......
......@@ -40,9 +40,9 @@
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h> /* for WideCharToMultiByte and MultiByteToWideChar */
#include "share/compat.h"
#include "share/win_utf8_io.h"
static UINT win_utf8_io_codepage = CP_ACP;
......@@ -148,7 +148,7 @@ int win_get_console_width(void)
/* print functions */
int print_console(FILE *stream, const wchar_t *text, uint32_t len)
int print_console(FILE *stream, const wchar_t *text, size_t len)
{
static HANDLE hOut;
static HANDLE hErr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment