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
2a493336
Commit
2a493336
authored
Sep 15, 2003
by
Rolf Kalbermatter
Committed by
Alexandre Julliard
Sep 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SHChangeNotify should use SHSimpleIDListFromPath as this function
should not fail on paths that do not exist anymore.
parent
2184030c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
changenotify.c
dlls/shell32/changenotify.c
+6
-7
No files found.
dlls/shell32/changenotify.c
View file @
2a493336
...
...
@@ -276,7 +276,6 @@ void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID
{
LPITEMIDLIST
Pidls
[
2
];
LPNOTIFICATIONLIST
ptr
;
DWORD
dummy
;
UINT
typeFlag
=
uFlags
&
SHCNF_TYPE
;
Pidls
[
0
]
=
NULL
;
...
...
@@ -313,12 +312,12 @@ void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID
switch
(
typeFlag
)
{
case
SHCNF_PATHA
:
if
(
dwItem1
)
SHILCreateFromPathA
((
LPCSTR
)
dwItem1
,
&
Pidls
[
0
],
&
dummy
);
if
(
dwItem2
)
SHILCreateFromPathA
((
LPCSTR
)
dwItem2
,
&
Pidls
[
1
],
&
dummy
);
if
(
dwItem1
)
Pidls
[
0
]
=
SHSimpleIDListFromPathA
((
LPCSTR
)
dwItem1
);
if
(
dwItem2
)
Pidls
[
1
]
=
SHSimpleIDListFromPathA
((
LPCSTR
)
dwItem2
);
break
;
case
SHCNF_PATHW
:
if
(
dwItem1
)
SHILCreateFromPathW
((
LPCWSTR
)
dwItem1
,
&
Pidls
[
0
],
&
dummy
);
if
(
dwItem2
)
SHILCreateFromPathW
((
LPCWSTR
)
dwItem2
,
&
Pidls
[
1
],
&
dummy
);
if
(
dwItem1
)
Pidls
[
0
]
=
SHSimpleIDListFromPathW
((
LPCWSTR
)
dwItem1
);
if
(
dwItem2
)
Pidls
[
1
]
=
SHSimpleIDListFromPathW
((
LPCWSTR
)
dwItem2
);
break
;
case
SHCNF_IDLIST
:
Pidls
[
0
]
=
(
LPITEMIDLIST
)
dwItem1
;
...
...
@@ -392,8 +391,8 @@ void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID
TRACE
(
"notify Done
\n
"
);
LeaveCriticalSection
(
&
SHELL32_ChangenotifyCS
);
/* if we allocated it, free it */
if
((
typeFlag
==
SHCNF_PATHA
)
||
(
typeFlag
==
SHCNF_PATHW
))
/* if we allocated it, free it
. The ANSI flag is also set in its Unicode sibling.
*/
if
((
typeFlag
&
SHCNF_PATHA
)
||
(
typeFlag
&
SHCNF_PRINTERA
))
{
if
(
Pidls
[
0
])
SHFree
(
Pidls
[
0
]);
if
(
Pidls
[
1
])
SHFree
(
Pidls
[
1
]);
...
...
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