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
29d4ec4f
Commit
29d4ec4f
authored
Oct 18, 2004
by
Rolf Kalbermatter
Committed by
Alexandre Julliard
Oct 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SHFreeNameMappings implementation.
parent
d17c162c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
shell32.spec
dlls/shell32/shell32.spec
+1
-1
shlfileop.c
dlls/shell32/shlfileop.c
+29
-0
No files found.
dlls/shell32/shell32.spec
View file @
29d4ec4f
...
...
@@ -382,7 +382,7 @@
@ stdcall SHFileOperationA(ptr)
@ stdcall SHFileOperationW(ptr)
@ stub SHFormatDrive
@ st
ub SHFreeNameMappings
@ st
dcall SHFreeNameMappings(ptr)
@ stdcall SHGetDesktopFolder(ptr)
@ stdcall SHGetFileInfo(ptr long ptr long long)SHGetFileInfoAW
@ stdcall SHGetFileInfoA(ptr long ptr long long)
...
...
dlls/shell32/shlfileop.c
View file @
29d4ec4f
...
...
@@ -1293,6 +1293,35 @@ DWORD WINAPI SHFileOperationAW(LPVOID lpFileOp)
return
SHFileOperationA
(
lpFileOp
);
}
#define SHDSA_GetItemCount(hdsa) (*(int*)(hdsa))
/*************************************************************************
* SHFreeNameMappings [shell32.246]
*
* Free the mapping handle returned by SHFileoperation if FOF_WANTSMAPPINGHANDLE
* was specified.
*
* PARAMS
* hNameMapping [I] handle to the name mappings used during renaming of files
*
*/
void
WINAPI
SHFreeNameMappings
(
HANDLE
hNameMapping
)
{
if
(
hNameMapping
)
{
int
i
=
SHDSA_GetItemCount
((
HDSA
)
hNameMapping
)
-
1
;
for
(;
i
>=
0
;
i
--
)
{
LPSHNAMEMAPPINGW
lp
=
DSA_GetItemPtr
((
HDSA
)
hNameMapping
,
i
);
SHFree
(
lp
->
pszOldPath
);
SHFree
(
lp
->
pszNewPath
);
}
DSA_Destroy
((
HDSA
)
hNameMapping
);
}
}
/*************************************************************************
* SheGetDirW [SHELL32.281]
*
...
...
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