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
97ee9c78
Commit
97ee9c78
authored
Nov 06, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Cast-qual warnings fix.
parent
fb28614a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
stg_prop.c
dlls/ole32/stg_prop.c
+10
-7
No files found.
dlls/ole32/stg_prop.c
View file @
97ee9c78
...
...
@@ -393,16 +393,20 @@ static HRESULT PropertyStorage_StringCopy(LPCSTR src, LCID srcCP, LPSTR *dst,
}
else
{
LPWSTR
wideStr
;
LPCWSTR
wideStr
=
NULL
;
LPWSTR
wideStr_tmp
=
NULL
;
if
(
srcCP
==
CP_UNICODE
)
wideStr
=
(
LPWSTR
)
src
;
wideStr
=
(
LP
C
WSTR
)
src
;
else
{
len
=
MultiByteToWideChar
(
srcCP
,
0
,
src
,
-
1
,
NULL
,
0
);
wideStr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
wideStr
)
MultiByteToWideChar
(
srcCP
,
0
,
src
,
-
1
,
wideStr
,
len
);
wideStr_tmp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
wideStr_tmp
)
{
MultiByteToWideChar
(
srcCP
,
0
,
src
,
-
1
,
wideStr_tmp
,
len
);
wideStr
=
wideStr_tmp
;
}
else
hr
=
STG_E_INSUFFICIENTMEMORY
;
}
...
...
@@ -426,8 +430,7 @@ static HRESULT PropertyStorage_StringCopy(LPCSTR src, LCID srcCP, LPSTR *dst,
}
}
}
if
(
wideStr
!=
(
LPWSTR
)
src
)
HeapFree
(
GetProcessHeap
(),
0
,
wideStr
);
HeapFree
(
GetProcessHeap
(),
0
,
wideStr_tmp
);
}
}
TRACE
(
"returning 0x%08x (%s)
\n
"
,
hr
,
...
...
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