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
43184aaf
Commit
43184aaf
authored
Nov 30, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Make findElement take a StorageBaseImpl.
parent
55b3a6e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
storage32.c
dlls/ole32/storage32.c
+11
-11
No files found.
dlls/ole32/storage32.c
View file @
43184aaf
...
...
@@ -196,7 +196,7 @@ static LONG entryNameCmp(
const
OLECHAR
*
name2
);
static
DirRef
findElement
(
StorageImpl
*
storage
,
Storage
Base
Impl
*
storage
,
DirRef
storageEntry
,
const
OLECHAR
*
name
,
DirEntry
*
data
);
...
...
@@ -447,7 +447,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStream(
* Search for the element with the given name
*/
streamEntryRef
=
findElement
(
This
->
ancestorStorage
,
This
,
This
->
storageDirEntry
,
pwcsName
,
&
currentEntry
);
...
...
@@ -571,7 +571,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStorage(
*
ppstg
=
NULL
;
storageEntryRef
=
findElement
(
This
->
ancestorStorage
,
This
,
This
->
storageDirEntry
,
pwcsName
,
&
currentEntry
);
...
...
@@ -736,7 +736,7 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
if
(
This
->
reverted
)
return
STG_E_REVERTED
;
currentEntryRef
=
findElement
(
This
->
ancestorStorage
,
currentEntryRef
=
findElement
(
This
,
This
->
storageDirEntry
,
pwcsNewName
,
&
currentEntry
);
...
...
@@ -752,7 +752,7 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
/*
* Search for the old element name
*/
currentEntryRef
=
findElement
(
This
->
ancestorStorage
,
currentEntryRef
=
findElement
(
This
,
This
->
storageDirEntry
,
pwcsOldName
,
&
currentEntry
);
...
...
@@ -858,7 +858,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
*
ppstm
=
0
;
currentEntryRef
=
findElement
(
This
->
ancestorStorage
,
currentEntryRef
=
findElement
(
This
,
This
->
storageDirEntry
,
pwcsName
,
&
currentEntry
);
...
...
@@ -1040,7 +1040,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStorage(
return
STG_E_ACCESSDENIED
;
}
currentEntryRef
=
findElement
(
This
->
ancestorStorage
,
currentEntryRef
=
findElement
(
This
,
This
->
storageDirEntry
,
pwcsName
,
&
currentEntry
);
...
...
@@ -1412,13 +1412,13 @@ static HRESULT insertIntoTree(
*
* Find and read the element of a storage with the given name.
*/
static
DirRef
findElement
(
StorageImpl
*
storage
,
DirRef
storageEntry
,
static
DirRef
findElement
(
Storage
Base
Impl
*
storage
,
DirRef
storageEntry
,
const
OLECHAR
*
name
,
DirEntry
*
data
)
{
DirRef
currentEntry
;
/* Read the storage entry to find the root of the tree. */
StorageImpl_ReadDirEntry
(
storage
,
storageEntry
,
data
);
Storage
Base
Impl_ReadDirEntry
(
storage
,
storageEntry
,
data
);
currentEntry
=
data
->
dirRootEntry
;
...
...
@@ -1426,7 +1426,7 @@ static DirRef findElement(StorageImpl *storage, DirRef storageEntry,
{
LONG
cmp
;
StorageImpl_ReadDirEntry
(
storage
,
currentEntry
,
data
);
Storage
Base
Impl_ReadDirEntry
(
storage
,
currentEntry
,
data
);
cmp
=
entryNameCmp
(
name
,
data
->
name
);
...
...
@@ -1779,7 +1779,7 @@ static HRESULT WINAPI StorageBaseImpl_DestroyElement(
return
STG_E_ACCESSDENIED
;
entryToDeleteRef
=
findElement
(
This
->
ancestorStorage
,
This
,
This
->
storageDirEntry
,
pwcsName
,
&
entryToDelete
);
...
...
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