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
d1764a45
Commit
d1764a45
authored
Mar 22, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Use nameless unions.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ee587da9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
Makefile.in
dlls/ieframe/Makefile.in
+0
-1
intshcut.c
dlls/ieframe/intshcut.c
+5
-5
No files found.
dlls/ieframe/Makefile.in
View file @
d1764a45
MODULE
=
ieframe.dll
IMPORTLIB
=
ieframe
IMPORTS
=
uuid urlmon shell32 comctl32 shlwapi oleaut32 ole32 user32 gdi32 advapi32
EXTRADEFS
=
-DWINE_NO_NAMELESS_EXTENSION
EXTRADLLFLAGS
=
-mno-cygwin
...
...
dlls/ieframe/intshcut.c
View file @
d1764a45
...
...
@@ -509,7 +509,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
ps
.
ulKind
=
PRSPEC_PROPID
;
ps
.
u
.
propid
=
PID_IS_ICONFILE
;
pv
.
vt
=
VT_LPWSTR
;
pv
.
u
.
pwszVal
=
iconfile
;
pv
.
pwszVal
=
iconfile
;
hr
=
IPropertyStorage_WriteMultiple
(
pPropStg
,
1
,
&
ps
,
&
pv
,
0
);
if
(
FAILED
(
hr
))
TRACE
(
"Failed to store the iconfile to our property storage. hr = 0x%x
\n
"
,
hr
);
...
...
@@ -525,7 +525,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
ps
.
ulKind
=
PRSPEC_PROPID
;
ps
.
u
.
propid
=
PID_IS_ICONINDEX
;
pv
.
vt
=
VT_I4
;
pv
.
u
.
iVal
=
iconindex
;
pv
.
iVal
=
iconindex
;
hr
=
IPropertyStorage_WriteMultiple
(
pPropStg
,
1
,
&
ps
,
&
pv
,
0
);
if
(
FAILED
(
hr
))
TRACE
(
"Failed to store the iconindex to our property storage. hr = 0x%x
\n
"
,
hr
);
...
...
@@ -606,18 +606,18 @@ static HRESULT WINAPI PersistFile_Save(IPersistFile *pFile, LPCOLESTR pszFileNam
else
if
(
SUCCEEDED
(
hr
))
{
char
indexString
[
50
];
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
pvread
[
0
].
u
.
pwszVal
,
-
1
,
NULL
,
0
,
0
,
0
);
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
pvread
[
0
].
pwszVal
,
-
1
,
NULL
,
0
,
0
,
0
);
iconfile
=
heap_alloc
(
len
);
if
(
iconfile
!=
NULL
)
{
WideCharToMultiByte
(
CP_UTF8
,
0
,
pvread
[
0
].
u
.
pwszVal
,
-
1
,
iconfile
,
len
,
0
,
0
);
WideCharToMultiByte
(
CP_UTF8
,
0
,
pvread
[
0
].
pwszVal
,
-
1
,
iconfile
,
len
,
0
,
0
);
WriteFile
(
file
,
str_ICONFILE
,
lstrlenA
(
str_ICONFILE
),
&
bytesWritten
,
NULL
);
WriteFile
(
file
,
iconfile
,
lstrlenA
(
iconfile
),
&
bytesWritten
,
NULL
);
WriteFile
(
file
,
str_eol
,
lstrlenA
(
str_eol
),
&
bytesWritten
,
NULL
);
heap_free
(
iconfile
);
}
sprintf
(
indexString
,
"ICONINDEX=%d"
,
pvread
[
1
].
u
.
iVal
);
sprintf
(
indexString
,
"ICONINDEX=%d"
,
pvread
[
1
].
iVal
);
WriteFile
(
file
,
indexString
,
lstrlenA
(
indexString
),
&
bytesWritten
,
NULL
);
WriteFile
(
file
,
str_eol
,
lstrlenA
(
str_eol
),
&
bytesWritten
,
NULL
);
...
...
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