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
8569d547
Commit
8569d547
authored
Nov 19, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Forbid renaming an open storage.
parent
c62a4ad8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
storage32.c
dlls/ole32/storage32.c
+3
-2
storage32.c
dlls/ole32/tests/storage32.c
+1
-1
No files found.
dlls/ole32/storage32.c
View file @
8569d547
...
...
@@ -765,9 +765,10 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
if
(
currentEntryRef
!=
DIRENTRY_NULL
)
{
if
(
StorageBaseImpl_IsStreamOpen
(
This
,
currentEntryRef
))
if
(
StorageBaseImpl_IsStreamOpen
(
This
,
currentEntryRef
)
||
StorageBaseImpl_IsStorageOpen
(
This
,
currentEntryRef
))
{
WARN
(
"
Stream
is already open; cannot rename.
\n
"
);
WARN
(
"
Element
is already open; cannot rename.
\n
"
);
return
STG_E_ACCESSDENIED
;
}
...
...
dlls/ole32/tests/storage32.c
View file @
8569d547
...
...
@@ -1073,7 +1073,7 @@ static void test_substorage_share(void)
/* cannot rename the storage while it's open */
r
=
IStorage_RenameElement
(
stg
,
stgname
,
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
,
stgname
);
#if 0
...
...
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