Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d3dbc8b1
Commit
d3dbc8b1
authored
Nov 12, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Rename property variables in storage stream implementation.
parent
17349a06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
stg_stream.c
dlls/ole32/stg_stream.c
+23
-23
No files found.
dlls/ole32/stg_stream.c
View file @
d3dbc8b1
...
...
@@ -180,14 +180,14 @@ static ULONG WINAPI StgStreamImpl_Release(
}
/***
* This method will open the block chain pointed by the
propert
y
* This method will open the block chain pointed by the
directory entr
y
* that describes the stream.
* If the stream's size is null, no chain is opened.
*/
static
void
StgStreamImpl_OpenBlockChain
(
StgStreamImpl
*
This
)
{
DirEntry
cur
Propert
y
;
DirEntry
cur
rentEntr
y
;
BOOL
readSuccessful
;
/*
...
...
@@ -206,22 +206,22 @@ static void StgStreamImpl_OpenBlockChain(
}
/*
* Read the information from the
propert
y.
* Read the information from the
directory entr
y.
*/
readSuccessful
=
StorageImpl_ReadDirEntry
(
This
->
parentStorage
->
ancestorStorage
,
This
->
dirEntry
,
&
cur
Propert
y
);
&
cur
rentEntr
y
);
if
(
readSuccessful
)
{
This
->
streamSize
=
cur
Propert
y
.
size
;
This
->
streamSize
=
cur
rentEntr
y
.
size
;
/*
* This code supports only streams that are <32 bits in size.
*/
assert
(
This
->
streamSize
.
u
.
HighPart
==
0
);
if
(
cur
Propert
y
.
startingBlock
==
BLOCK_END_OF_CHAIN
)
if
(
cur
rentEntr
y
.
startingBlock
==
BLOCK_END_OF_CHAIN
)
{
assert
(
(
This
->
streamSize
.
u
.
HighPart
==
0
)
&&
(
This
->
streamSize
.
u
.
LowPart
==
0
)
);
}
...
...
@@ -545,7 +545,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
{
StgStreamImpl
*
const
This
=
(
StgStreamImpl
*
)
iface
;
DirEntry
cur
Propert
y
;
DirEntry
cur
rentEntr
y
;
BOOL
Success
;
TRACE
(
"(%p, %d)
\n
"
,
iface
,
libNewSize
.
u
.
LowPart
);
...
...
@@ -603,16 +603,16 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
}
/*
* Read this stream's
property
to see if it's small blocks or big blocks
* Read this stream's
size
to see if it's small blocks or big blocks
*/
Success
=
StorageImpl_ReadDirEntry
(
This
->
parentStorage
->
ancestorStorage
,
This
->
dirEntry
,
&
cur
Propert
y
);
&
cur
rentEntr
y
);
/*
* Determine if we have to switch from small to big blocks or vice versa
*/
if
(
(
This
->
smallBlockChain
!=
0
)
&&
(
cur
Propert
y
.
size
.
u
.
LowPart
<
LIMIT_TO_USE_SMALL_BLOCK
)
)
(
cur
rentEntr
y
.
size
.
u
.
LowPart
<
LIMIT_TO_USE_SMALL_BLOCK
)
)
{
if
(
libNewSize
.
u
.
LowPart
>=
LIMIT_TO_USE_SMALL_BLOCK
)
{
...
...
@@ -625,7 +625,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
}
}
else
if
(
(
This
->
bigBlockChain
!=
0
)
&&
(
cur
Propert
y
.
size
.
u
.
LowPart
>=
LIMIT_TO_USE_SMALL_BLOCK
)
)
(
cur
rentEntr
y
.
size
.
u
.
LowPart
>=
LIMIT_TO_USE_SMALL_BLOCK
)
)
{
if
(
libNewSize
.
u
.
LowPart
<
LIMIT_TO_USE_SMALL_BLOCK
)
{
...
...
@@ -648,20 +648,20 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
}
/*
* Write the new information about this stream to the
propert
y
* Write the new information about this stream to the
directory entr
y
*/
Success
=
StorageImpl_ReadDirEntry
(
This
->
parentStorage
->
ancestorStorage
,
This
->
dirEntry
,
&
cur
Propert
y
);
&
cur
rentEntr
y
);
cur
Propert
y
.
size
.
u
.
HighPart
=
libNewSize
.
u
.
HighPart
;
cur
Propert
y
.
size
.
u
.
LowPart
=
libNewSize
.
u
.
LowPart
;
cur
rentEntr
y
.
size
.
u
.
HighPart
=
libNewSize
.
u
.
HighPart
;
cur
rentEntr
y
.
size
.
u
.
LowPart
=
libNewSize
.
u
.
LowPart
;
if
(
Success
)
{
StorageImpl_WriteDirEntry
(
This
->
parentStorage
->
ancestorStorage
,
This
->
dirEntry
,
&
cur
Propert
y
);
&
cur
rentEntr
y
);
}
This
->
streamSize
=
libNewSize
;
...
...
@@ -834,7 +834,7 @@ static HRESULT WINAPI StgStreamImpl_Stat(
{
StgStreamImpl
*
const
This
=
(
StgStreamImpl
*
)
iface
;
DirEntry
cur
Propert
y
;
DirEntry
cur
rentEntr
y
;
BOOL
readSuccessful
;
TRACE
(
"%p %p %d
\n
"
,
This
,
pstatstg
,
grfStatFlag
);
...
...
@@ -850,18 +850,18 @@ static HRESULT WINAPI StgStreamImpl_Stat(
}
/*
* Read the information from the
propert
y.
* Read the information from the
directory entr
y.
*/
readSuccessful
=
StorageImpl_ReadDirEntry
(
This
->
parentStorage
->
ancestorStorage
,
This
->
dirEntry
,
&
cur
Propert
y
);
&
cur
rentEntr
y
);
if
(
readSuccessful
)
{
StorageImpl
*
root
=
This
->
parentStorage
->
ancestorStorage
;
StorageUtl_CopyDirEntryToSTATSTG
(
pstatstg
,
&
cur
Propert
y
,
&
cur
rentEntr
y
,
grfStatFlag
);
pstatstg
->
grfMode
=
This
->
grfMode
;
...
...
@@ -873,7 +873,7 @@ static HRESULT WINAPI StgStreamImpl_Stat(
return
S_OK
;
}
WARN
(
"failed to read
properties
\n
"
);
WARN
(
"failed to read
entry
\n
"
);
return
E_FAIL
;
}
...
...
@@ -957,7 +957,7 @@ static const IStreamVtbl StgStreamImpl_Vtbl =
*
* Params:
* parentStorage - Pointer to the storage that contains the stream to open
*
ownerProperty - Index of the propert
y that points to this stream.
*
dirEntry - Index of the directory entr
y that points to this stream.
*/
StgStreamImpl
*
StgStreamImpl_Construct
(
StorageBaseImpl
*
parentStorage
,
...
...
@@ -1008,7 +1008,7 @@ StgStreamImpl* StgStreamImpl_Construct(
newStream
->
smallBlockChain
=
0
;
/*
* Read the size from the
propert
y and determine if the blocks forming
* Read the size from the
directory entr
y and determine if the blocks forming
* this stream are large or small.
*/
StgStreamImpl_OpenBlockChain
(
newStream
);
...
...
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