mirror of
https://github.com/reactos/reactos.git
synced 2025-05-15 07:17:23 +00:00
[SETUPAPI] Implement freeing memory in SetupDiDestroyClassImageList function. Based on patch from CircularTriangle06. Thanks! See CORE-11668
svn path=/trunk/; revision=72777
This commit is contained in:
parent
76bf27c021
commit
4a71e9a2bc
1 changed files with 11 additions and 4 deletions
|
@ -101,10 +101,17 @@ SetupDiDestroyClassImageList(
|
||||||
SetLastError(ERROR_INVALID_USER_BUFFER);
|
SetLastError(ERROR_INVALID_USER_BUFFER);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//DestroyIcon()
|
/* If Reserved wasn't NULL, then this is valid too */
|
||||||
//ImageList_Destroy();
|
if (ClassImageListData->ImageList)
|
||||||
FIXME("Stub %p\n", ClassImageListData);
|
{
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
ImageList_Destroy(ClassImageListData->ImageList);
|
||||||
|
ClassImageListData->ImageList = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
MyFree(list);
|
||||||
|
ClassImageListData->Reserved = 0;
|
||||||
|
|
||||||
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
TRACE("Returning %d\n", ret);
|
TRACE("Returning %d\n", ret);
|
||||||
|
|
Loading…
Reference in a new issue