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
699f4cc7
Commit
699f4cc7
authored
Sep 28, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Cast-qual warnings fix.
parent
cf47c3af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
brsfolder.c
dlls/shell32/brsfolder.c
+7
-5
No files found.
dlls/shell32/brsfolder.c
View file @
699f4cc7
...
...
@@ -713,7 +713,8 @@ LPITEMIDLIST WINAPI SHBrowseForFolderA (LPBROWSEINFOA lpbi)
BROWSEINFOW
bi
;
LPITEMIDLIST
lpid
;
INT
len
;
LPWSTR
title
;
TRACE
(
"%p
\n
"
,
lpbi
);
bi
.
hwndOwner
=
lpbi
->
hwndOwner
;
...
...
@@ -729,12 +730,13 @@ LPITEMIDLIST WINAPI SHBrowseForFolderA (LPBROWSEINFOA lpbi)
if
(
lpbi
->
lpszTitle
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpbi
->
lpszTitle
,
-
1
,
NULL
,
0
);
bi
.
lpszT
itle
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
lpbi
->
lpszTitle
,
-
1
,
(
LPWSTR
)
bi
.
lpszT
itle
,
len
);
t
itle
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
lpbi
->
lpszTitle
,
-
1
,
t
itle
,
len
);
}
else
bi
.
lpszT
itle
=
NULL
;
t
itle
=
NULL
;
bi
.
lpszTitle
=
title
;
bi
.
ulFlags
=
lpbi
->
ulFlags
;
bi
.
lpfn
=
lpbi
->
lpfn
;
bi
.
lParam
=
lpbi
->
lParam
;
...
...
@@ -746,7 +748,7 @@ LPITEMIDLIST WINAPI SHBrowseForFolderA (LPBROWSEINFOA lpbi)
lpbi
->
pszDisplayName
,
MAX_PATH
,
0
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
bi
.
pszDisplayName
);
}
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
bi
.
lpszT
itle
);
HeapFree
(
GetProcessHeap
(),
0
,
t
itle
);
lpbi
->
iImage
=
bi
.
iImage
;
return
lpid
;
}
...
...
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