Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b3350899
Commit
b3350899
authored
Apr 28, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Switch the rest to use the explicit W-forms.
And compile with -DWINE_NO_UNICODE_MACROS.
parent
fe0c5cb6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
Makefile.in
programs/wineconsole/Makefile.in
+1
-1
curses.c
programs/wineconsole/curses.c
+1
-1
winecon_user.h
programs/wineconsole/winecon_user.h
+7
-7
wineconsole.c
programs/wineconsole/wineconsole.c
+6
-6
No files found.
programs/wineconsole/Makefile.in
View file @
b3350899
EXTRADEFS
=
-D
UNICODE
EXTRADEFS
=
-D
WINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
programs/wineconsole/curses.c
View file @
b3350899
...
...
@@ -882,7 +882,7 @@ static DWORD CALLBACK input_thread( void *arg )
else
numEvent
=
WCCURSES_FillSimpleChar
(
ir
,
inchar
);
if
(
numEvent
)
WriteConsoleInput
(
data
->
hConIn
,
ir
,
numEvent
,
&
n
);
if
(
numEvent
)
WriteConsoleInput
W
(
data
->
hConIn
,
ir
,
numEvent
,
&
n
);
}
close
(
PRIVATE
(
data
)
->
sync_pipe
[
0
]
);
return
0
;
...
...
programs/wineconsole/winecon_user.h
View file @
b3350899
...
...
@@ -45,13 +45,13 @@ struct inner_data_user {
/* from user.c */
extern
const
COLORREF
WCUSER_ColorMap
[
16
];
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
LOGFONT
W
*
lf
);
extern
BOOL
WCUSER_ValidateFontMetric
(
const
struct
inner_data
*
data
,
const
TEXTMETRIC
*
tm
,
DWORD
fontType
);
extern
HFONT
WCUSER_CopyFont
(
struct
config_data
*
config
,
HWND
hWnd
,
const
LOGFONT
*
lf
,
LONG
*
el
);
extern
void
WCUSER_FillLogFont
(
LOGFONT
*
lf
,
const
WCHAR
*
name
,
const
TEXTMETRIC
W
*
tm
,
DWORD
fontType
);
extern
HFONT
WCUSER_CopyFont
(
struct
config_data
*
config
,
HWND
hWnd
,
const
LOGFONTW
*
lf
,
LONG
*
el
);
extern
void
WCUSER_FillLogFont
(
LOGFONT
W
*
lf
,
const
WCHAR
*
name
,
UINT
height
,
UINT
weight
);
extern
void
WCUSER_DumpLogFont
(
const
char
*
pfx
,
const
LOGFONT
*
lf
,
DWORD
ft
);
extern
void
WCUSER_DumpTextMetric
(
const
TEXTMETRIC
*
tm
,
DWORD
ft
);
extern
void
WCUSER_DumpLogFont
(
const
char
*
pfx
,
const
LOGFONT
W
*
lf
,
DWORD
ft
);
extern
void
WCUSER_DumpTextMetric
(
const
TEXTMETRIC
W
*
tm
,
DWORD
ft
);
programs/wineconsole/wineconsole.c
View file @
b3350899
...
...
@@ -45,7 +45,7 @@ static void printf_res(UINT uResId, ...)
va_list
args
;
va_start
(
args
,
uResId
);
LoadStringW
(
GetModuleHandle
(
NULL
),
uResId
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
));
LoadStringW
(
GetModuleHandle
W
(
NULL
),
uResId
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
buffer
[
0
]
));
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
buffer
,
-
1
,
ansi
,
sizeof
(
ansi
),
NULL
,
NULL
);
vprintf
(
ansi
,
args
);
va_end
(
args
);
...
...
@@ -561,7 +561,7 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
data
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
data
));
if
(
!
data
)
return
0
;
GetStartupInfo
(
&
si
);
GetStartupInfo
W
(
&
si
);
if
(
pid
==
0
)
{
...
...
@@ -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
)
{
PROCESS_INFORMATION
info
;
STARTUPINFO
startup
;
BOOL
done
;
PROCESS_INFORMATION
info
;
STARTUPINFO
W
startup
;
BOOL
done
;
/* we're in the case wineconsole <exe> <options>... spawn the new process */
memset
(
&
startup
,
0
,
sizeof
(
startup
));
...
...
@@ -696,7 +696,7 @@ static BOOL WINECON_Spawn(struct inner_data* data, LPWSTR cmdLine)
return
FALSE
;
}
done
=
CreateProcess
(
NULL
,
cmdLine
,
NULL
,
NULL
,
TRUE
,
0L
,
NULL
,
NULL
,
&
startup
,
&
info
);
done
=
CreateProcess
W
(
NULL
,
cmdLine
,
NULL
,
NULL
,
TRUE
,
0L
,
NULL
,
NULL
,
&
startup
,
&
info
);
/* we no longer need the handles passed to the child for the console */
CloseHandle
(
startup
.
hStdInput
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment