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
df13a1d1
Commit
df13a1d1
authored
Nov 25, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Change WriteDirEntry return type to HRESULT.
parent
382ffed0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
17 deletions
+15
-17
storage32.c
dlls/ole32/storage32.c
+14
-16
storage32.h
dlls/ole32/storage32.h
+1
-1
No files found.
dlls/ole32/storage32.c
View file @
df13a1d1
...
...
@@ -978,11 +978,9 @@ static HRESULT WINAPI StorageBaseImpl_SetClass(
{
currentEntry
.
clsid
=
*
clsid
;
success
=
StorageImpl_WriteDirEntry
(
This
->
ancestorStorage
,
This
->
storageDirEntry
,
&
currentEntry
);
if
(
success
)
hRes
=
S_OK
;
hRes
=
StorageImpl_WriteDirEntry
(
This
->
ancestorStorage
,
This
->
storageDirEntry
,
&
currentEntry
);
}
return
hRes
;
...
...
@@ -2091,13 +2089,13 @@ static HRESULT removeFromTree(
*/
setEntryLink
(
&
parentEntry
,
typeOfRelation
,
entryToDelete
.
leftChild
);
res
=
StorageImpl_WriteDirEntry
(
hr
=
StorageImpl_WriteDirEntry
(
This
,
parentEntryRef
,
&
parentEntry
);
if
(
!
res
)
if
(
FAILED
(
hr
)
)
{
return
E_FAIL
;
return
hr
;
}
if
(
entryToDelete
.
rightChild
!=
DIRENTRY_NULL
)
...
...
@@ -2127,13 +2125,13 @@ static HRESULT removeFromTree(
newRightChildParentEntry
.
rightChild
=
entryToDelete
.
rightChild
;
res
=
StorageImpl_WriteDirEntry
(
hr
=
StorageImpl_WriteDirEntry
(
This
,
newRightChildParent
,
&
newRightChildParentEntry
);
if
(
!
res
)
if
(
FAILED
(
hr
)
)
{
return
E_FAIL
;
return
hr
;
}
}
}
...
...
@@ -2144,13 +2142,13 @@ static HRESULT removeFromTree(
*/
setEntryLink
(
&
parentEntry
,
typeOfRelation
,
entryToDelete
.
rightChild
);
res
=
StorageImpl_WriteDirEntry
(
hr
=
StorageImpl_WriteDirEntry
(
This
,
parentEntryRef
,
&
parentEntry
);
if
(
!
res
)
if
(
FAILED
(
hr
)
)
{
return
E_FAIL
;
return
hr
;
}
}
...
...
@@ -3334,7 +3332,7 @@ BOOL StorageImpl_ReadDirEntry(
/*********************************************************************
* Write the specified directory entry to the file
*/
BOOL
StorageImpl_WriteDirEntry
(
HRESULT
StorageImpl_WriteDirEntry
(
StorageImpl
*
This
,
DirRef
index
,
const
DirEntry
*
buffer
)
...
...
@@ -3345,7 +3343,7 @@ BOOL StorageImpl_WriteDirEntry(
UpdateRawDirEntry
(
currentEntry
,
buffer
);
writeRes
=
StorageImpl_WriteRawDirEntry
(
This
,
index
,
currentEntry
);
return
SUCCEEDED
(
writeRes
)
?
TRUE
:
FALSE
;
return
writeRes
;
}
static
BOOL
StorageImpl_ReadBigBlock
(
...
...
dlls/ole32/storage32.h
View file @
df13a1d1
...
...
@@ -336,7 +336,7 @@ BOOL StorageImpl_ReadDirEntry(
DirRef
index
,
DirEntry
*
buffer
);
BOOL
StorageImpl_WriteDirEntry
(
HRESULT
StorageImpl_WriteDirEntry
(
StorageImpl
*
This
,
DirRef
index
,
const
DirEntry
*
buffer
);
...
...
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