Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
30ab4fe8
Commit
30ab4fe8
authored
Apr 29, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
icinfo: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fdc124c1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
Makefile.in
programs/icinfo/Makefile.in
+2
-1
icinfo.c
programs/icinfo/icinfo.c
+8
-9
No files found.
programs/icinfo/Makefile.in
View file @
30ab4fe8
MODULE
=
icinfo.exe
APPMODE
=
-mconsole
-municode
IMPORTS
=
msvfw32
EXTRADLLFLAGS
=
-mconsole
-municode
-mno-cygwin
C_SRCS
=
icinfo.c
programs/icinfo/icinfo.c
View file @
30ab4fe8
...
...
@@ -18,28 +18,27 @@
#include <stdio.h>
#include <string.h>
#include <wine/unicode.h>
#include "windows.h"
#include "mmsystem.h"
#include "vfw.h"
static
int
mywprintf
(
const
WCHAR
*
format
,
...)
static
int
WINAPIV
mywprintf
(
const
WCHAR
*
format
,
...)
{
static
char
output_bufA
[
65536
];
static
WCHAR
output_bufW
[
sizeof
(
output_bufA
)];
va_list
parms
;
__ms_va_list
parms
;
DWORD
nOut
;
BOOL
res
=
FALSE
;
HANDLE
hout
=
GetStdHandle
(
STD_OUTPUT_HANDLE
);
va_start
(
parms
,
format
);
vs
nprintfW
(
output_bufW
,
ARRAY_SIZE
(
output_bufW
),
format
,
parms
);
va_end
(
parms
);
__ms_
va_start
(
parms
,
format
);
vs
wprintf
(
output_bufW
,
ARRAY_SIZE
(
output_bufW
),
format
,
parms
);
__ms_
va_end
(
parms
);
/* Try to write as unicode whenever we think it's a console */
if
(((
DWORD_PTR
)
hout
&
3
)
==
3
)
{
res
=
WriteConsoleW
(
hout
,
output_bufW
,
strlenW
(
output_bufW
),
&
nOut
,
NULL
);
res
=
WriteConsoleW
(
hout
,
output_bufW
,
l
strlenW
(
output_bufW
),
&
nOut
,
NULL
);
}
else
{
...
...
@@ -82,9 +81,9 @@ int wmain(int argc, WCHAR* argv[])
static
const
WCHAR
unk_opt_fmt
[]
=
{
'U'
,
'n'
,
'k'
,
'n'
,
'o'
,
'w'
,
'n'
,
' '
,
'o'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
':'
,
' '
,
'%'
,
's'
,
'\n'
,
0
};
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
if
(
!
strcmpW
(
argv
[
i
],
about
))
if
(
!
l
strcmpW
(
argv
[
i
],
about
))
doabout
=
1
;
else
if
(
!
strcmpW
(
argv
[
i
],
configure
))
else
if
(
!
l
strcmpW
(
argv
[
i
],
configure
))
doconfigure
=
1
;
else
{
mywprintf
(
unk_opt_fmt
,
argv
[
i
]);
...
...
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