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
cb9e5726
Commit
cb9e5726
authored
Sep 12, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Sep 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Discard existing data when creating a new storage on an ILockBytes.
parent
7df35e9b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
storage32.c
dlls/ole32/storage32.c
+4
-0
storage32.c
dlls/ole32/tests/storage32.c
+1
-1
No files found.
dlls/ole32/storage32.c
View file @
cb9e5726
...
...
@@ -2740,6 +2740,10 @@ static HRESULT StorageImpl_Construct(
ULARGE_INTEGER
size
;
BYTE
bigBlockBuffer
[
MAX_BIG_BLOCK_SIZE
];
/* Discard any existing data. */
size
.
QuadPart
=
0
;
ILockBytes_SetSize
(
This
->
lockBytes
,
size
);
/*
* Initialize all header variables:
* - The big block depot consists of one block and it is at block 0
...
...
dlls/ole32/tests/storage32.c
View file @
cb9e5726
...
...
@@ -2971,7 +2971,7 @@ static void test_hglobal_storage_creation(void)
r
=
StgOpenStorageOnILockBytes
(
ilb
,
NULL
,
STGM_READ
|
STGM_SHARE_EXCLUSIVE
,
NULL
,
0
,
&
stg
);
todo_wine
ok
(
r
==
S_OK
,
"StgOpenStorageOnILockBytes failed, hr=%x
\n
"
,
r
);
ok
(
r
==
S_OK
,
"StgOpenStorageOnILockBytes failed, hr=%x
\n
"
,
r
);
if
(
SUCCEEDED
(
r
))
{
...
...
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