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
ed435371
Commit
ed435371
authored
Jul 05, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appwiz.cpl: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
72d6759f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
106 additions
and
124 deletions
+106
-124
Makefile.in
dlls/appwiz.cpl/Makefile.in
+2
-0
addons.c
dlls/appwiz.cpl/addons.c
+97
-113
appwiz.c
dlls/appwiz.cpl/appwiz.c
+5
-9
appwiz.h
dlls/appwiz.cpl/appwiz.h
+2
-2
No files found.
dlls/appwiz.cpl/Makefile.in
View file @
ed435371
...
...
@@ -2,6 +2,8 @@ MODULE = appwiz.cpl
IMPORTS
=
uuid urlmon advpack comctl32 advapi32 shell32 ole32 user32 comdlg32 bcrypt
DELAYIMPORTS
=
msi
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
addons.c
\
appwiz.c
...
...
dlls/appwiz.cpl/addons.c
View file @
ed435371
This diff is collapsed.
Click to expand it.
dlls/appwiz.cpl/appwiz.c
View file @
ed435371
...
...
@@ -25,9 +25,6 @@
#define NONAMELESSUNION
#include "config.h"
#include "wine/port.h"
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
...
...
@@ -42,7 +39,6 @@
#include <commdlg.h>
#include <cpl.h>
#include "wine/unicode.h"
#include "wine/list.h"
#include "wine/debug.h"
#include "appwiz.h"
...
...
@@ -249,12 +245,12 @@ static BOOL ReadApplicationsFromRegistry(HKEY root)
&
displen
);
/* separate the index from the icon name, if supplied */
iconPtr
=
strchrW
(
info
->
icon
,
','
);
iconPtr
=
wcschr
(
info
->
icon
,
','
);
if
(
iconPtr
)
{
*
iconPtr
++
=
0
;
info
->
iconIdx
=
atoiW
(
iconPtr
);
info
->
iconIdx
=
wcstol
(
iconPtr
,
NULL
,
10
);
}
}
...
...
@@ -459,7 +455,7 @@ static void InstallProgram(HWND hWnd)
LoadStringW
(
hInst
,
IDS_FILTER_PROGRAMS
,
filter_programs
,
ARRAY_SIZE
(
filter_programs
));
LoadStringW
(
hInst
,
IDS_FILTER_ALL
,
filter_all
,
ARRAY_SIZE
(
filter_all
));
s
nprintfW
(
FilterBufferW
,
MAX_PATH
,
filters
,
filter_installs
,
0
,
0
,
s
wprintf
(
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
);
...
...
@@ -969,12 +965,12 @@ static LONG start_params(const WCHAR *params)
if
(
!
params
)
return
FALSE
;
if
(
!
strcmpW
(
params
,
install_geckoW
))
{
if
(
!
wcscmp
(
params
,
install_geckoW
))
{
install_addon
(
ADDON_GECKO
);
return
TRUE
;
}
if
(
!
strcmpW
(
params
,
install_monoW
))
{
if
(
!
wcscmp
(
params
,
install_monoW
))
{
install_addon
(
ADDON_MONO
);
return
TRUE
;
}
...
...
dlls/appwiz.cpl/appwiz.h
View file @
ed435371
...
...
@@ -17,7 +17,7 @@
*/
#include "wine/heap.h"
#include "win
e/unicode
.h"
#include "win
nls
.h"
typedef
enum
{
ADDON_GECKO
,
...
...
@@ -33,7 +33,7 @@ static inline WCHAR *heap_strdupW(const WCHAR *str)
WCHAR
*
ret
;
if
(
str
)
{
size_t
size
=
strlenW
(
str
)
+
1
;
size_t
size
=
l
strlenW
(
str
)
+
1
;
ret
=
heap_alloc
(
size
*
sizeof
(
WCHAR
));
if
(
ret
)
memcpy
(
ret
,
str
,
size
*
sizeof
(
WCHAR
));
...
...
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