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
52100e96
Commit
52100e96
authored
Nov 18, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Do not allow renaming streams that are open.
parent
371f6a48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
storage32.c
dlls/ole32/storage32.c
+6
-0
storage32.c
dlls/ole32/tests/storage32.c
+1
-1
No files found.
dlls/ole32/storage32.c
View file @
52100e96
...
...
@@ -731,6 +731,12 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
if
(
currentEntryRef
!=
DIRENTRY_NULL
)
{
if
(
StorageBaseImpl_IsStreamOpen
(
This
,
currentEntryRef
))
{
WARN
(
"Stream is already open; cannot rename.
\n
"
);
return
STG_E_ACCESSDENIED
;
}
/* Remove the element from its current position in the tree */
removeFromTree
(
This
->
ancestorStorage
,
This
->
storageDirEntry
,
currentEntryRef
);
...
...
dlls/ole32/tests/storage32.c
View file @
52100e96
...
...
@@ -1113,7 +1113,7 @@ static void test_substorage_share(void)
/* cannot rename the stream while it's open */
r
=
IStorage_RenameElement
(
stg
,
stmname
,
othername
);
todo_wine
ok
(
r
==
STG_E_ACCESSDENIED
,
"IStorage->RenameElement should fail %08x
\n
"
,
r
);
ok
(
r
==
STG_E_ACCESSDENIED
,
"IStorage->RenameElement should fail %08x
\n
"
,
r
);
if
(
SUCCEEDED
(
r
))
IStorage_RenameElement
(
stg
,
othername
,
stmname
);
/* destroying an object while it's open invalidates it */
...
...
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