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
0ae30d30
Commit
0ae30d30
authored
Mar 28, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Mar 28, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- adjusted printing of refcounts to be equal
- cleaning up icon cache on PROCESS_DETACH - fixed ascii/unicode use in SH/ILCreateFromPath - fixed small memory leak in shellview
parent
d208d826
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
11 deletions
+42
-11
contmenu.c
dlls/shell32/contmenu.c
+1
-1
dataobject.c
dlls/shell32/dataobject.c
+2
-2
folders.c
dlls/shell32/folders.c
+1
-1
iconcache.c
dlls/shell32/iconcache.c
+23
-2
pidl.c
dlls/shell32/pidl.c
+2
-2
shell32_main.h
dlls/shell32/shell32_main.h
+12
-0
shlview.c
dlls/shell32/shlview.c
+1
-3
No files found.
dlls/shell32/contmenu.c
View file @
0ae30d30
...
...
@@ -182,7 +182,7 @@ static ULONG WINAPI IContextMenu_fnAddRef(IContextMenu *iface)
{
ICOM_THIS
(
IContextMenuImpl
,
iface
);
TRACE
(
shell
,
"(%p)->(count=%lu)
\n
"
,
This
,
(
This
->
ref
)
+
1
);
TRACE
(
shell
,
"(%p)->(count=%lu)
\n
"
,
This
,
This
->
ref
);
shell32_ObjCount
++
;
return
++
(
This
->
ref
);
...
...
dlls/shell32/dataobject.c
View file @
0ae30d30
...
...
@@ -99,7 +99,7 @@ static HRESULT WINAPI IEnumFORMATETC_fnQueryInterface(LPENUMFORMATETC iface, REF
static
ULONG
WINAPI
IEnumFORMATETC_fnAddRef
(
LPENUMFORMATETC
iface
)
{
ICOM_THIS
(
IEnumFORMATETCImpl
,
iface
);
TRACE
(
shell
,
"(%p)->(count=%lu)
\n
"
,
This
,
(
This
->
ref
)
+
1
);
TRACE
(
shell
,
"(%p)->(count=%lu)
\n
"
,
This
,
This
->
ref
);
shell32_ObjCount
++
;
return
++
(
This
->
ref
);
}
...
...
@@ -277,7 +277,7 @@ static ULONG WINAPI IDataObject_fnAddRef(LPDATAOBJECT iface)
{
ICOM_THIS
(
IDataObjectImpl
,
iface
);
TRACE
(
shell
,
"(%p)->(count=%lu)
\n
"
,
This
,
(
This
->
ref
)
+
1
);
TRACE
(
shell
,
"(%p)->(count=%lu)
\n
"
,
This
,
This
->
ref
);
shell32_ObjCount
++
;
return
++
(
This
->
ref
);
...
...
dlls/shell32/folders.c
View file @
0ae30d30
...
...
@@ -84,7 +84,7 @@ static ULONG WINAPI IExtractIconA_fnAddRef(IExtractIconA * iface)
{
ICOM_THIS
(
IExtractIconAImpl
,
iface
);
TRACE
(
shell
,
"(%p)->(count=%lu)
\n
"
,
This
,
(
This
->
ref
)
+
1
);
TRACE
(
shell
,
"(%p)->(count=%lu)
\n
"
,
This
,
This
->
ref
);
shell32_ObjCount
++
;
...
...
dlls/shell32/iconcache.c
View file @
0ae30d30
...
...
@@ -610,7 +610,24 @@ BOOL SIC_Initialize(void)
return
TRUE
;
}
/*************************************************************************
* SIC_Destroy
*
* frees the cache
*/
void
SIC_Destroy
(
void
)
{
LPSIC_ENTRY
lpsice
;
int
i
;
if
(
hdpa
&&
NULL
!=
pDPA_GetPtr
(
hdpa
,
0
))
{
for
(
i
=
0
;
i
<
DPA_GetPtrCount
(
hdpa
);
++
i
)
{
lpsice
=
DPA_GetPtr
(
hdpa
,
i
);
SHFree
(
lpsice
);
}
pDPA_Destroy
(
hdpa
);
}
}
/*************************************************************************
* Shell_GetImageList [SHELL32.71]
*
...
...
@@ -637,7 +654,8 @@ DWORD WINAPI Shell_GetImageList(HIMAGELIST * lpBigList, HIMAGELIST * lpSmallList
* x pointer to an instance of IShellFolder
*
* NOTES
* first hack
* calls Release on the ShellFolder
* FIXME: should get the icon by calling GetUIObjectOf(sh)
*
*/
DWORD
WINAPI
SHMapPIDLToSystemImageListIndex
(
LPSHELLFOLDER
sh
,
LPITEMIDLIST
pidl
,
DWORD
z
)
...
...
@@ -645,9 +663,12 @@ DWORD WINAPI SHMapPIDLToSystemImageListIndex(LPSHELLFOLDER sh,LPITEMIDLIST pidl,
DWORD
dwNr
,
ret
=
INVALID_INDEX
;
LPITEMIDLIST
pidltemp
=
ILFindLastID
(
pidl
);
WARN
(
shell
,
"(SF=%p,pidl=%p,0x%08lx)
\n
"
,
sh
,
pidl
,
z
);
WARN
(
shell
,
"(SF=%p,pidl=%p,0x%08lx)
\n
"
,
sh
,
pidl
,
z
);
pdump
(
pidl
);
/* if (sh)
IShellFolder_Release(sh);
*/
if
(
_ILIsDesktop
(
pidltemp
))
{
return
34
;
}
...
...
dlls/shell32/pidl.c
View file @
0ae30d30
...
...
@@ -171,7 +171,7 @@ HRESULT WINAPI SHILCreateFromPathW (LPWSTR path, LPITEMIDLIST * ppidl, DWORD att
}
HRESULT
WINAPI
SHILCreateFromPathAW
(
LPVOID
path
,
LPITEMIDLIST
*
ppidl
,
DWORD
attributes
)
{
if
(
!
VERSION_OsIsUnicode
())
if
(
VERSION_OsIsUnicode
())
return
SHILCreateFromPathW
(
path
,
ppidl
,
attributes
);
return
SHILCreateFromPathA
(
path
,
ppidl
,
attributes
);
}
...
...
@@ -528,7 +528,7 @@ LPITEMIDLIST WINAPI ILCreateFromPathW (LPWSTR path)
}
LPITEMIDLIST
WINAPI
ILCreateFromPathAW
(
LPVOID
path
)
{
if
(
!
VERSION_OsIsUnicode
())
if
(
VERSION_OsIsUnicode
())
return
ILCreateFromPathW
(
path
);
return
ILCreateFromPathA
(
path
);
}
...
...
dlls/shell32/shell32_main.h
View file @
0ae30d30
...
...
@@ -5,6 +5,17 @@
#ifndef __WINE_SHELL_MAIN_H
#define __WINE_SHELL_MAIN_H
#include "imagelist.h"
#include "commctrl.h"
#include "shell.h"
#include "wine/obj_shellfolder.h"
#include "wine/obj_dataobject.h"
#include "wine/obj_contextmenu.h"
#include "wine/obj_shellview.h"
#include "wine/obj_shelllink.h"
#include "wine/obj_extracticon.h"
/*******************************************
* global SHELL32.DLL variables
*/
...
...
@@ -57,6 +68,7 @@ HRESULT WINAPI StrRetToStrN (LPVOID dest, DWORD len, LPSTRRET src, LPITEMIDLIST
/* Iconcache */
#define INVALID_INDEX -1
BOOL
SIC_Initialize
(
void
);
void
SIC_Destroy
(
void
);
/*INT32 SIC_GetIconIndex (LPCSTR sSourceFile, INT32 dwSourceIndex );*/
/* Classes Root */
...
...
dlls/shell32/shlview.c
View file @
0ae30d30
...
...
@@ -31,7 +31,6 @@
typedef
struct
{
ICOM_VTABLE
(
IShellView
)
*
lpvtbl
;
DWORD
ref
;
LPITEMIDLIST
mpidl
;
IShellFolder
*
pSFParent
;
IShellBrowser
*
pShellBrowser
;
ICommDlgBrowser
*
pCommDlgBrowser
;
...
...
@@ -127,7 +126,6 @@ IShellView * IShellView_Constructor( IShellFolder * pFolder, LPCITEMIDLIST pidl)
sv
->
ref
=
1
;
sv
->
lpvtbl
=&
svvt
;
sv
->
mpidl
=
ILClone
(
pidl
);
sv
->
hMenu
=
0
;
sv
->
pSFParent
=
pFolder
;
sv
->
uSelected
=
0
;
...
...
@@ -1237,7 +1235,7 @@ static ULONG WINAPI IShellView_fnAddRef(IShellView * iface)
{
ICOM_THIS
(
IShellViewImpl
,
iface
);
TRACE
(
shell
,
"(%p)->(count=%lu)
\n
"
,
This
,
(
This
->
ref
)
+
1
);
TRACE
(
shell
,
"(%p)->(count=%lu)
\n
"
,
This
,
This
->
ref
);
shell32_ObjCount
++
;
return
++
(
This
->
ref
);
...
...
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