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
d3cb5c24
Commit
d3cb5c24
authored
Aug 29, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Aug 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Remove __SHFreeAndNil macro.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
af468590
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
shell32_main.h
dlls/shell32/shell32_main.h
+0
-6
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+8
-2
No files found.
dlls/shell32/shell32_main.h
View file @
d3cb5c24
...
...
@@ -156,12 +156,6 @@ static inline BOOL SHELL_OsIsUnicode(void)
return
!
(
GetVersion
()
&
0x80000000
);
}
#define __SHFreeAndNil(ptr) \
{\
SHFree(*ptr); \
*ptr = NULL; \
};
static
inline
WCHAR
*
__SHCloneStrAtoW
(
WCHAR
**
target
,
const
char
*
source
)
{
int
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
source
,
-
1
,
NULL
,
0
);
...
...
dlls/shell32/shfldr_fs.c
View file @
d3cb5c24
...
...
@@ -1482,9 +1482,15 @@ IFSFldr_PersistFolder3_InitializeEx (IPersistFolder3 * iface,
pdump
(
ppfti
->
pidlTargetFolder
);
if
(
This
->
pidlRoot
)
__SHFreeAndNil
(
&
This
->
pidlRoot
);
/* free the old */
{
SHFree
(
This
->
pidlRoot
);
This
->
pidlRoot
=
NULL
;
}
if
(
This
->
sPathTarget
)
__SHFreeAndNil
(
&
This
->
sPathTarget
);
{
SHFree
(
This
->
sPathTarget
);
This
->
sPathTarget
=
NULL
;
}
/*
* Root path and pidl
...
...
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