Commit b3350899 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

wineconsole: Switch the rest to use the explicit W-forms.

And compile with -DWINE_NO_UNICODE_MACROS.
parent fe0c5cb6
EXTRADEFS = -DUNICODE EXTRADEFS = -DWINE_NO_UNICODE_MACROS
TOPSRCDIR = @top_srcdir@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../.. TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
......
...@@ -882,7 +882,7 @@ static DWORD CALLBACK input_thread( void *arg ) ...@@ -882,7 +882,7 @@ static DWORD CALLBACK input_thread( void *arg )
else else
numEvent = WCCURSES_FillSimpleChar(ir, inchar); numEvent = WCCURSES_FillSimpleChar(ir, inchar);
if (numEvent) WriteConsoleInput(data->hConIn, ir, numEvent, &n); if (numEvent) WriteConsoleInputW(data->hConIn, ir, numEvent, &n);
} }
close( PRIVATE(data)->sync_pipe[0] ); close( PRIVATE(data)->sync_pipe[0] );
return 0; return 0;
......
...@@ -45,13 +45,13 @@ struct inner_data_user { ...@@ -45,13 +45,13 @@ struct inner_data_user {
/* from user.c */ /* from user.c */
extern const COLORREF WCUSER_ColorMap[16]; extern const COLORREF WCUSER_ColorMap[16];
extern BOOL WCUSER_GetProperties(struct inner_data*, BOOL); extern BOOL WCUSER_GetProperties(struct inner_data*, BOOL);
extern BOOL WCUSER_ValidateFont(const struct inner_data* data, const LOGFONT* lf); extern BOOL WCUSER_ValidateFont(const struct inner_data* data, const LOGFONTW* lf);
extern BOOL WCUSER_ValidateFontMetric(const struct inner_data* data, extern BOOL WCUSER_ValidateFontMetric(const struct inner_data* data,
const TEXTMETRIC* tm, DWORD fontType); const TEXTMETRICW* tm, DWORD fontType);
extern HFONT WCUSER_CopyFont(struct config_data* config, HWND hWnd, const LOGFONT* lf, extern HFONT WCUSER_CopyFont(struct config_data* config, HWND hWnd,
LONG* el); const LOGFONTW* lf, LONG* el);
extern void WCUSER_FillLogFont(LOGFONT* lf, const WCHAR* name, extern void WCUSER_FillLogFont(LOGFONTW* lf, const WCHAR* name,
UINT height, UINT weight); UINT height, UINT weight);
extern void WCUSER_DumpLogFont(const char* pfx, const LOGFONT* lf, DWORD ft); extern void WCUSER_DumpLogFont(const char* pfx, const LOGFONTW* lf, DWORD ft);
extern void WCUSER_DumpTextMetric(const TEXTMETRIC* tm, DWORD ft); extern void WCUSER_DumpTextMetric(const TEXTMETRICW* tm, DWORD ft);
...@@ -45,7 +45,7 @@ static void printf_res(UINT uResId, ...) ...@@ -45,7 +45,7 @@ static void printf_res(UINT uResId, ...)
va_list args; va_list args;
va_start(args, uResId); va_start(args, uResId);
LoadStringW(GetModuleHandle(NULL), uResId, buffer, sizeof(buffer)/sizeof(WCHAR)); LoadStringW(GetModuleHandleW(NULL), uResId, buffer, sizeof(buffer)/sizeof(buffer[0]));
WideCharToMultiByte(CP_UNIXCP, 0, buffer, -1, ansi, sizeof(ansi), NULL, NULL); WideCharToMultiByte(CP_UNIXCP, 0, buffer, -1, ansi, sizeof(ansi), NULL, NULL);
vprintf(ansi, args); vprintf(ansi, args);
va_end(args); va_end(args);
...@@ -561,7 +561,7 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna ...@@ -561,7 +561,7 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
data = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*data)); data = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*data));
if (!data) return 0; if (!data) return 0;
GetStartupInfo(&si); GetStartupInfoW(&si);
if (pid == 0) if (pid == 0)
{ {
...@@ -672,9 +672,9 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna ...@@ -672,9 +672,9 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
*/ */
static BOOL WINECON_Spawn(struct inner_data* data, LPWSTR cmdLine) static BOOL WINECON_Spawn(struct inner_data* data, LPWSTR cmdLine)
{ {
PROCESS_INFORMATION info; PROCESS_INFORMATION info;
STARTUPINFO startup; STARTUPINFOW startup;
BOOL done; BOOL done;
/* we're in the case wineconsole <exe> <options>... spawn the new process */ /* we're in the case wineconsole <exe> <options>... spawn the new process */
memset(&startup, 0, sizeof(startup)); memset(&startup, 0, sizeof(startup));
...@@ -696,7 +696,7 @@ static BOOL WINECON_Spawn(struct inner_data* data, LPWSTR cmdLine) ...@@ -696,7 +696,7 @@ static BOOL WINECON_Spawn(struct inner_data* data, LPWSTR cmdLine)
return FALSE; return FALSE;
} }
done = CreateProcess(NULL, cmdLine, NULL, NULL, TRUE, 0L, NULL, NULL, &startup, &info); done = CreateProcessW(NULL, cmdLine, NULL, NULL, TRUE, 0L, NULL, NULL, &startup, &info);
/* we no longer need the handles passed to the child for the console */ /* we no longer need the handles passed to the child for the console */
CloseHandle(startup.hStdInput); CloseHandle(startup.hStdInput);
......
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