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
e8aba9c4
Commit
e8aba9c4
authored
Oct 20, 2022
by
Alex Henrie
Committed by
Alexandre Julliard
Oct 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Don't use strdupW or heap_* functions in shellole.c.
parent
72c0c88f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
shellole.c
dlls/shell32/shellole.c
+10
-10
No files found.
dlls/shell32/shellole.c
View file @
e8aba9c4
...
...
@@ -385,7 +385,7 @@ static IClassFactory * IDefClF_fnConstructor(LPFNCREATEINSTANCE lpfnCI, PLONG pc
{
IDefClFImpl
*
lpclf
;
lpclf
=
heap_
alloc
(
sizeof
(
*
lpclf
));
lpclf
=
m
alloc
(
sizeof
(
*
lpclf
));
lpclf
->
ref
=
1
;
lpclf
->
IClassFactory_iface
.
lpVtbl
=
&
dclfvt
;
lpclf
->
lpfnCI
=
lpfnCI
;
...
...
@@ -445,7 +445,7 @@ static ULONG WINAPI IDefClF_fnRelease(LPCLASSFACTORY iface)
if
(
This
->
pcRefDll
)
InterlockedDecrement
(
This
->
pcRefDll
);
TRACE
(
"-- destroying IClassFactory(%p)
\n
"
,
This
);
heap_
free
(
This
);
free
(
This
);
}
return
refCount
;
...
...
@@ -580,7 +580,7 @@ UINT WINAPI DragQueryFileA(
LPWSTR
lpszFileW
=
NULL
;
if
(
lpszFile
&&
lFile
!=
0xFFFFFFFF
)
{
lpszFileW
=
heap_alloc
(
lLength
*
sizeof
(
WCHAR
));
lpszFileW
=
malloc
(
lLength
*
sizeof
(
WCHAR
));
if
(
lpszFileW
==
NULL
)
{
goto
end
;
}
...
...
@@ -589,7 +589,7 @@ UINT WINAPI DragQueryFileA(
if
(
lpszFileW
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
lpszFileW
,
-
1
,
lpszFile
,
lLength
,
0
,
NULL
);
heap_
free
(
lpszFileW
);
free
(
lpszFileW
);
}
goto
end
;
}
...
...
@@ -635,7 +635,7 @@ UINT WINAPI DragQueryFileW(
LPSTR
lpszFileA
=
NULL
;
if
(
lpszwFile
&&
lFile
!=
0xFFFFFFFF
)
{
lpszFileA
=
heap_
alloc
(
lLength
);
lpszFileA
=
m
alloc
(
lLength
);
if
(
lpszFileA
==
NULL
)
{
goto
end
;
}
...
...
@@ -644,7 +644,7 @@ UINT WINAPI DragQueryFileW(
if
(
lpszFileA
)
{
MultiByteToWideChar
(
CP_ACP
,
0
,
lpszFileA
,
-
1
,
lpszwFile
,
lLength
);
heap_
free
(
lpszFileA
);
free
(
lpszFileA
);
}
goto
end
;
}
...
...
@@ -876,8 +876,8 @@ static ULONG WINAPI ShellImageData_Release(IShellImageData *iface)
if
(
!
ref
)
{
GdipDisposeImage
(
This
->
image
);
heap_
free
(
This
->
path
);
SHF
ree
(
This
);
free
(
This
->
path
);
f
ree
(
This
);
}
return
ref
;
...
...
@@ -1247,12 +1247,12 @@ static HRESULT create_shellimagedata_from_path(const WCHAR *path, IShellImageDat
{
ShellImageData
*
This
;
This
=
SHA
lloc
(
sizeof
(
*
This
));
This
=
ma
lloc
(
sizeof
(
*
This
));
This
->
IShellImageData_iface
.
lpVtbl
=
&
ShellImageDataVtbl
;
This
->
ref
=
1
;
This
->
path
=
strdupW
(
path
);
This
->
path
=
wcsdup
(
path
);
This
->
image
=
NULL
;
*
data
=
&
This
->
IShellImageData_iface
;
...
...
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