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
1ba6a135
Commit
1ba6a135
authored
Nov 28, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Output with MESSAGE.
Regular GUI programs don't use console nor std I/O. Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
e048f71e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
26 deletions
+18
-26
appdefaults.c
programs/winecfg/appdefaults.c
+3
-4
audio.c
programs/winecfg/audio.c
+0
-1
drive.c
programs/winecfg/drive.c
+0
-1
driveui.c
programs/winecfg/driveui.c
+0
-2
libraries.c
programs/winecfg/libraries.c
+0
-1
main.c
programs/winecfg/main.c
+15
-14
theme.c
programs/winecfg/theme.c
+0
-1
winecfg.c
programs/winecfg/winecfg.c
+0
-1
x11drvdlg.c
programs/winecfg/x11drvdlg.c
+0
-1
No files found.
programs/winecfg/appdefaults.c
View file @
1ba6a135
...
...
@@ -25,7 +25,6 @@
#include <windows.h>
#include <commdlg.h>
#include <wine/debug.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "winecfg.h"
...
...
@@ -516,7 +515,7 @@ void print_windows_versions(void)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
win_versions
);
i
++
)
{
wprintf
(
L" %10s %
s
\n
"
,
win_versions
[
i
].
szVersion
,
win_versions
[
i
].
szDescription
);
MESSAGE
(
" %10ls %l
s
\n
"
,
win_versions
[
i
].
szVersion
,
win_versions
[
i
].
szDescription
);
}
}
...
...
@@ -527,10 +526,10 @@ void print_current_winver(void)
if
(
!
winver
||
!
winver
[
0
])
{
int
ver
=
get_registry_version
();
wprintf
(
L"%
s
\n
"
,
ver
==
-
1
?
DEFAULT_WIN_VERSION
:
win_versions
[
ver
].
szVersion
);
MESSAGE
(
"%l
s
\n
"
,
ver
==
-
1
?
DEFAULT_WIN_VERSION
:
win_versions
[
ver
].
szVersion
);
}
else
wprintf
(
L"%
s
\n
"
,
winver
);
MESSAGE
(
"%l
s
\n
"
,
winver
);
free
(
winver
);
}
...
...
programs/winecfg/audio.c
View file @
1ba6a135
...
...
@@ -23,7 +23,6 @@
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define COBJMACROS
...
...
programs/winecfg/drive.c
View file @
1ba6a135
...
...
@@ -23,7 +23,6 @@
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <ntstatus.h>
...
...
programs/winecfg/driveui.c
View file @
1ba6a135
...
...
@@ -21,8 +21,6 @@
*
*/
#include <stdio.h>
#define WIN32_LEAN_AND_MEAN
#define COBJMACROS
...
...
programs/winecfg/libraries.c
View file @
1ba6a135
...
...
@@ -23,7 +23,6 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <commdlg.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
...
...
programs/winecfg/main.c
View file @
1ba6a135
...
...
@@ -23,6 +23,7 @@
#define WIN32_LEAN_AND_MEAN
#include <locale.h>
#include <windows.h>
#include <commctrl.h>
#include <objbase.h>
...
...
@@ -186,6 +187,9 @@ ProcessCmdLine(LPWSTR lpCmdLine)
{
return
-
1
;
}
setlocale
(
LC_ALL
,
"en-US"
);
if
(
lpCmdLine
[
1
]
==
'V'
||
lpCmdLine
[
1
]
==
'v'
)
{
if
(
wcslen
(
lpCmdLine
)
>
4
)
...
...
@@ -194,22 +198,19 @@ ProcessCmdLine(LPWSTR lpCmdLine)
print_current_winver
();
return
0
;
}
if
(
lpCmdLine
[
1
]
!=
'?'
)
MESSAGE
(
"Unsupported option '%ls'
\n
"
,
lpCmdLine
);
if
(
lpCmdLine
[
1
]
==
'?'
)
{
printf
(
"Usage: winecfg [options]
\n\n
"
);
printf
(
"Options:
\n
"
);
printf
(
" [no option] Launch the graphical version of this program.
\n
"
);
printf
(
" /v Display the current global Windows version.
\n
"
);
printf
(
" /v version Set global Windows version to 'version'.
\n
"
);
printf
(
" /? Display this information and exit.
\n\n
"
);
printf
(
"Valid versions for 'version':
\n\n
"
);
print_windows_versions
();
MESSAGE
(
"Usage: winecfg [options]
\n\n
"
);
MESSAGE
(
"Options:
\n
"
);
MESSAGE
(
" [no option] Launch the graphical version of this program.
\n
"
);
MESSAGE
(
" /v Display the current global Windows version.
\n
"
);
MESSAGE
(
" /v version Set global Windows version to 'version'.
\n
"
);
MESSAGE
(
" /? Display this information and exit.
\n\n
"
);
MESSAGE
(
"Valid versions for 'version':
\n\n
"
);
print_windows_versions
();
return
0
;
}
return
-
1
;
return
0
;
}
/*****************************************************************************
...
...
programs/winecfg/theme.c
View file @
1ba6a135
...
...
@@ -25,7 +25,6 @@
#include <assert.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#define COBJMACROS
...
...
programs/winecfg/winecfg.c
View file @
1ba6a135
...
...
@@ -30,7 +30,6 @@
#define WIN32_LEAN_AND_MEAN
#include <assert.h>
#include <stdio.h>
#include <limits.h>
#include <windows.h>
#include <winreg.h>
...
...
programs/winecfg/x11drvdlg.c
View file @
1ba6a135
...
...
@@ -25,7 +25,6 @@
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
#include <wine/debug.h>
...
...
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