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
df960e27
Commit
df960e27
authored
Nov 12, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Rename stream.ownerProperty to dirEntry.
parent
4ba13cb9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
stg_stream.c
dlls/ole32/stg_stream.c
+12
-12
storage32.c
dlls/ole32/storage32.c
+1
-1
storage32.h
dlls/ole32/storage32.h
+3
-3
No files found.
dlls/ole32/stg_stream.c
View file @
df960e27
...
...
@@ -209,7 +209,7 @@ static void StgStreamImpl_OpenBlockChain(
* Read the information from the property.
*/
readSuccessful
=
StorageImpl_ReadDirEntry
(
This
->
parentStorage
->
ancestorStorage
,
This
->
ownerPropert
y
,
This
->
dirEntr
y
,
&
curProperty
);
if
(
readSuccessful
)
...
...
@@ -233,14 +233,14 @@ static void StgStreamImpl_OpenBlockChain(
This
->
smallBlockChain
=
SmallBlockChainStream_Construct
(
This
->
parentStorage
->
ancestorStorage
,
NULL
,
This
->
ownerPropert
y
);
This
->
dirEntr
y
);
}
else
{
This
->
bigBlockChain
=
BlockChainStream_Construct
(
This
->
parentStorage
->
ancestorStorage
,
NULL
,
This
->
ownerPropert
y
);
This
->
dirEntr
y
);
}
}
}
...
...
@@ -591,14 +591,14 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
This
->
smallBlockChain
=
SmallBlockChainStream_Construct
(
This
->
parentStorage
->
ancestorStorage
,
NULL
,
This
->
ownerPropert
y
);
This
->
dirEntr
y
);
}
else
{
This
->
bigBlockChain
=
BlockChainStream_Construct
(
This
->
parentStorage
->
ancestorStorage
,
NULL
,
This
->
ownerPropert
y
);
This
->
dirEntr
y
);
}
}
...
...
@@ -606,7 +606,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
* Read this stream's property to see if it's small blocks or big blocks
*/
Success
=
StorageImpl_ReadDirEntry
(
This
->
parentStorage
->
ancestorStorage
,
This
->
ownerPropert
y
,
This
->
dirEntr
y
,
&
curProperty
);
/*
* Determine if we have to switch from small to big blocks or vice versa
...
...
@@ -651,7 +651,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
* Write the new information about this stream to the property
*/
Success
=
StorageImpl_ReadDirEntry
(
This
->
parentStorage
->
ancestorStorage
,
This
->
ownerPropert
y
,
This
->
dirEntr
y
,
&
curProperty
);
curProperty
.
size
.
u
.
HighPart
=
libNewSize
.
u
.
HighPart
;
...
...
@@ -660,7 +660,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
if
(
Success
)
{
StorageImpl_WriteDirEntry
(
This
->
parentStorage
->
ancestorStorage
,
This
->
ownerPropert
y
,
This
->
dirEntr
y
,
&
curProperty
);
}
...
...
@@ -853,7 +853,7 @@ static HRESULT WINAPI StgStreamImpl_Stat(
* Read the information from the property.
*/
readSuccessful
=
StorageImpl_ReadDirEntry
(
This
->
parentStorage
->
ancestorStorage
,
This
->
ownerPropert
y
,
This
->
dirEntr
y
,
&
curProperty
);
if
(
readSuccessful
)
...
...
@@ -910,7 +910,7 @@ static HRESULT WINAPI StgStreamImpl_Clone(
if
(
ppstm
==
0
)
return
STG_E_INVALIDPOINTER
;
new_stream
=
StgStreamImpl_Construct
(
This
->
parentStorage
,
This
->
grfMode
,
This
->
ownerPropert
y
);
new_stream
=
StgStreamImpl_Construct
(
This
->
parentStorage
,
This
->
grfMode
,
This
->
dirEntr
y
);
if
(
!
new_stream
)
return
STG_E_INSUFFICIENTMEMORY
;
/* Currently the only reason for new_stream=0 */
...
...
@@ -962,7 +962,7 @@ static const IStreamVtbl StgStreamImpl_Vtbl =
StgStreamImpl
*
StgStreamImpl_Construct
(
StorageBaseImpl
*
parentStorage
,
DWORD
grfMode
,
ULONG
ownerPropert
y
)
ULONG
dirEntr
y
)
{
StgStreamImpl
*
newStream
;
...
...
@@ -991,7 +991,7 @@ StgStreamImpl* StgStreamImpl_Construct(
*/
newStream
->
grfMode
=
grfMode
;
newStream
->
ownerProperty
=
ownerPropert
y
;
newStream
->
dirEntry
=
dirEntr
y
;
/*
* Start the stream at the beginning.
...
...
dlls/ole32/storage32.c
View file @
df960e27
...
...
@@ -827,7 +827,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
LIST_FOR_EACH_ENTRY
(
strm
,
&
This
->
strmHead
,
StgStreamImpl
,
StrmListEntry
)
{
if
(
strm
->
ownerPropert
y
==
foundPropertyIndex
)
if
(
strm
->
dirEntr
y
==
foundPropertyIndex
)
{
TRACE
(
"Stream deleted %p
\n
"
,
strm
);
strm
->
parentStorage
=
NULL
;
...
...
dlls/ole32/storage32.h
View file @
df960e27
...
...
@@ -352,9 +352,9 @@ struct StgStreamImpl
DWORD
grfMode
;
/*
* Index of the
propert
y that owns (points to) this stream.
* Index of the
directory entr
y that owns (points to) this stream.
*/
ULONG
ownerPropert
y
;
ULONG
dirEntr
y
;
/*
* Helper variable that contains the size of the stream
...
...
@@ -381,7 +381,7 @@ struct StgStreamImpl
StgStreamImpl
*
StgStreamImpl_Construct
(
StorageBaseImpl
*
parentStorage
,
DWORD
grfMode
,
ULONG
ownerPropert
y
);
ULONG
dirEntr
y
);
/******************************************************************************
...
...
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