Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
85b4d928
Commit
85b4d928
authored
14 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
appwiz.cpl: Build the file filter by hand instead of hardcoding it in resource strings.
parent
fc872b5b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dlls/appwiz.cpl/Uk.rc
+3
-1
3 additions, 1 deletion
dlls/appwiz.cpl/Uk.rc
dlls/appwiz.cpl/Zh.rc
+6
-2
6 additions, 2 deletions
dlls/appwiz.cpl/Zh.rc
dlls/appwiz.cpl/appwiz.c
+11
-2
11 additions, 2 deletions
dlls/appwiz.cpl/appwiz.c
dlls/appwiz.cpl/res.h
+8
-6
8 additions, 6 deletions
dlls/appwiz.cpl/res.h
with
28 additions
and
11 deletions
dlls/appwiz.cpl/Uk.rc
+
3
−
1
View file @
85b4d928
...
...
@@ -39,7 +39,9 @@ STRINGTABLE
IDS_COLUMN_NAME, "Назва"
IDS_COLUMN_PUBLISHER, "Видавець"
IDS_COLUMN_VERSION, "Версія"
IDS_INSTALL_FILTER, "Програми встановлення\0*instal*.exe;*setup*.exe;*.msi\0Програми (*.exe)\0*.exe\0Всі Файли (*.*)\0*.*\0\0"
IDS_FILTER_INSTALLS, "Програми встановлення"
IDS_FILTER_PROGRAMS, "Програми (*.exe)"
IDS_FILTER_ALL, "Всі Файли (*.*)"
IDS_REMOVE, "&Видалити..."
IDS_MODIFY_REMOVE, "&Змінити/Видалити..."
...
...
This diff is collapsed.
Click to expand it.
dlls/appwiz.cpl/Zh.rc
+
6
−
2
View file @
85b4d928
...
...
@@ -39,7 +39,9 @@ STRINGTABLE
IDS_COLUMN_NAME, "名称"
IDS_COLUMN_PUBLISHER, "生产商"
IDS_COLUMN_VERSION, "版本"
IDS_INSTALL_FILTER, "安装程序\0*instal*.exe;*setup*.exe;*.msi\0程序 (*.exe)\0*.exe\0所有文件 (*.*)\0*.*\0\0"
IDS_FILTER_INSTALLS, "安装程序"
IDS_FILTER_PROGRAMS, "程序 (*.exe)"
IDS_FILTER_ALL, "所有文件 (*.*)"
IDS_REMOVE, "删除 (&R)..."
IDS_MODIFY_REMOVE, "修改或删除 (&M)..."
...
...
@@ -120,7 +122,9 @@ STRINGTABLE
IDS_COLUMN_NAME, "名稱"
IDS_COLUMN_PUBLISHER, "生產商"
IDS_COLUMN_VERSION, "版本"
IDS_INSTALL_FILTER, "Installation Programs\0*instal*.exe;*setup*.exe;*.msi\0Programs (*.exe)\0*.exe\0All Files (*.*)\0*.*\0\0"
IDS_FILTER_INSTALLS, "Installation Programs"
IDS_FILTER_PROGRAMS, "Programs (*.exe)"
IDS_FILTER_ALL, "All files (*.*)"
IDS_REMOVE, "&Remove..."
IDS_MODIFY_REMOVE, "&Modify/Remove..."
...
...
This diff is collapsed.
Click to expand it.
dlls/appwiz.cpl/appwiz.c
+
11
−
2
View file @
85b4d928
...
...
@@ -446,14 +446,23 @@ static void UpdateButtons(HWND hWnd)
*/
static
void
InstallProgram
(
HWND
hWnd
)
{
static
const
WCHAR
filters
[]
=
{
'%'
,
's'
,
'%'
,
'c'
,
'*'
,
'i'
,
'n'
,
's'
,
't'
,
'a'
,
'l'
,
'*'
,
'.'
,
'e'
,
'x'
,
'e'
,
';'
,
'*'
,
's'
,
'e'
,
't'
,
'u'
,
'p'
,
'*'
,
'.'
,
'e'
,
'x'
,
'e'
,
';'
,
'*'
,
'.'
,
'm'
,
's'
,
'i'
,
'%'
,
'c'
,
'%'
,
's'
,
'%'
,
'c'
,
'*'
,
'.'
,
'e'
,
'x'
,
'e'
,
'%'
,
'c'
,
'%'
,
's'
,
'%'
,
'c'
,
'*'
,
'.'
,
'*'
,
'%'
,
'c'
,
0
}
;
OPENFILENAMEW
ofn
;
WCHAR
titleW
[
MAX_STRING_LEN
];
WCHAR
FilterBufferW
[
MAX_STRING_LEN
];
WCHAR
filter_installs
[
MAX_STRING_LEN
];
WCHAR
filter_programs
[
MAX_STRING_LEN
];
WCHAR
filter_all
[
MAX_STRING_LEN
];
WCHAR
FilterBufferW
[
MAX_PATH
];
WCHAR
FileNameBufferW
[
MAX_PATH
];
LoadStringW
(
hInst
,
IDS_CPL_TITLE
,
titleW
,
sizeof
(
titleW
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_INSTALL_FILTER
,
FilterBufferW
,
sizeof
(
FilterBufferW
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_FILTER_INSTALLS
,
filter_installs
,
sizeof
(
filter_installs
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_FILTER_PROGRAMS
,
filter_programs
,
sizeof
(
filter_programs
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_FILTER_ALL
,
filter_all
,
sizeof
(
filter_all
)
/
sizeof
(
WCHAR
));
snprintfW
(
FilterBufferW
,
MAX_PATH
,
filters
,
filter_installs
,
0
,
0
,
filter_programs
,
0
,
0
,
filter_all
,
0
,
0
);
memset
(
&
ofn
,
0
,
sizeof
(
OPENFILENAMEW
));
ofn
.
lStructSize
=
sizeof
(
OPENFILENAMEW
);
ofn
.
hwndOwner
=
hWnd
;
...
...
This diff is collapsed.
Click to expand it.
dlls/appwiz.cpl/res.h
+
8
−
6
View file @
85b4d928
...
...
@@ -63,9 +63,11 @@
#define IDS_COLUMN_NAME 6
#define IDS_COLUMN_PUBLISHER 7
#define IDS_COLUMN_VERSION 8
#define IDS_INSTALL_FILTER 9
#define IDS_REMOVE 10
#define IDS_MODIFY_REMOVE 11
#define IDS_DOWNLOADING 12
#define IDS_INSTALLING 13
#define IDS_INVALID_SHA 14
#define IDS_FILTER_INSTALLS 9
#define IDS_FILTER_PROGRAMS 10
#define IDS_FILTER_ALL 11
#define IDS_REMOVE 12
#define IDS_MODIFY_REMOVE 13
#define IDS_DOWNLOADING 14
#define IDS_INSTALLING 15
#define IDS_INVALID_SHA 16
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment