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
e8da744f
Commit
e8da744f
authored
Dec 11, 2010
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Fix compilation on systems that don't support nameless unions.
parent
2d8522fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
intshcut.c
dlls/shdocvw/intshcut.c
+10
-9
No files found.
dlls/shdocvw/intshcut.c
View file @
e8da744f
...
...
@@ -30,6 +30,7 @@
#include <stdarg.h>
#include <stdio.h>
#define NONAMELESSUNION
#include "wine/debug.h"
#include "shdocvw.h"
#include "objidl.h"
...
...
@@ -503,9 +504,9 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
PROPSPEC
ps
;
PROPVARIANT
pv
;
ps
.
ulKind
=
PRSPEC_PROPID
;
ps
.
propid
=
PID_IS_ICONFILE
;
ps
.
u
.
propid
=
PID_IS_ICONFILE
;
pv
.
vt
=
VT_LPWSTR
;
pv
.
pwszVal
=
iconfile
;
pv
.
u
.
pwszVal
=
iconfile
;
hr
=
IPropertyStorage_WriteMultiple
(
pPropStg
,
1
,
&
ps
,
&
pv
,
0
);
if
(
FAILED
(
hr
))
{
...
...
@@ -526,9 +527,9 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
sscanf
(
iconindexastring
,
"%d"
,
&
iconindex
);
CoTaskMemFree
(
iconindexastring
);
ps
.
ulKind
=
PRSPEC_PROPID
;
ps
.
propid
=
PID_IS_ICONINDEX
;
ps
.
u
.
propid
=
PID_IS_ICONINDEX
;
pv
.
vt
=
VT_I4
;
pv
.
iVal
=
iconindex
;
pv
.
u
.
iVal
=
iconindex
;
hr
=
IPropertyStorage_WriteMultiple
(
pPropStg
,
1
,
&
ps
,
&
pv
,
0
);
if
(
FAILED
(
hr
))
{
...
...
@@ -595,9 +596,9 @@ static HRESULT WINAPI PersistFile_Save(IPersistFile *pFile, LPCOLESTR pszFileNam
PROPSPEC
ps
[
2
];
PROPVARIANT
pvread
[
2
];
ps
[
0
].
ulKind
=
PRSPEC_PROPID
;
ps
[
0
].
propid
=
PID_IS_ICONFILE
;
ps
[
0
].
u
.
propid
=
PID_IS_ICONFILE
;
ps
[
1
].
ulKind
=
PRSPEC_PROPID
;
ps
[
1
].
propid
=
PID_IS_ICONINDEX
;
ps
[
1
].
u
.
propid
=
PID_IS_ICONINDEX
;
WriteFile
(
file
,
str_header
,
lstrlenA
(
str_header
),
&
bytesWritten
,
NULL
);
WriteFile
(
file
,
str_eol
,
lstrlenA
(
str_eol
),
&
bytesWritten
,
NULL
);
...
...
@@ -612,17 +613,17 @@ static HRESULT WINAPI PersistFile_Save(IPersistFile *pFile, LPCOLESTR pszFileNam
if
SUCCEEDED
(
hr
)
{
char
indexString
[
50
];
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
pvread
[
0
].
pwszVal
,
-
1
,
NULL
,
0
,
0
,
0
);
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
pvread
[
0
].
u
.
pwszVal
,
-
1
,
NULL
,
0
,
0
,
0
);
iconfile
=
heap_alloc
(
len
);
if
(
iconfile
!=
NULL
)
{
WideCharToMultiByte
(
CP_UTF8
,
0
,
pvread
[
0
].
pwszVal
,
-
1
,
iconfile
,
len
,
0
,
0
);
WideCharToMultiByte
(
CP_UTF8
,
0
,
pvread
[
0
].
u
.
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
);
}
sprintf
(
indexString
,
"ICONINDEX=%d"
,
pvread
[
1
].
iVal
);
sprintf
(
indexString
,
"ICONINDEX=%d"
,
pvread
[
1
].
u
.
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