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
6f7c2b94
Commit
6f7c2b94
authored
Sep 08, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Sep 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix a few file access discrepancies between platforms.
parent
75187819
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
47 deletions
+51
-47
storage32.c
dlls/ole32/tests/storage32.c
+51
-47
No files found.
dlls/ole32/tests/storage32.c
View file @
6f7c2b94
...
...
@@ -1003,65 +1003,66 @@ struct access_res
{
BOOL
gothandle
;
DWORD
lasterr
;
BOOL
ignore
;
};
static
const
struct
access_res
create
[
16
]
=
{
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
TRUE
,
ERROR_SUCCESS
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
TRUE
,
ERROR_SUCCESS
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
TRUE
,
ERROR_SUCCESS
}
{
TRUE
,
ERROR_SUCCESS
,
TRUE
},
{
TRUE
,
ERROR_SUCCESS
,
TRUE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
TRUE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
TRUE
}
};
static
const
struct
access_res
create_commit
[
16
]
=
{
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
TRUE
,
ERROR_SUCCESS
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
TRUE
,
ERROR_SUCCESS
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
FALSE
,
ERROR_SHARING_VIOLATION
},
{
TRUE
,
ERROR_SUCCESS
}
{
TRUE
,
ERROR_SUCCESS
,
TRUE
},
{
TRUE
,
ERROR_SUCCESS
,
TRUE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
TRUE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
FALSE
,
ERROR_SHARING_VIOLATION
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
TRUE
}
};
static
const
struct
access_res
create_close
[
16
]
=
{
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
,
FALSE
},
{
TRUE
,
ERROR_SUCCESS
}
};
...
...
@@ -1081,6 +1082,9 @@ static void _test_file_access(LPCSTR file, const struct access_res *ares, DWORD
for
(
j
=
0
;
j
<
4
;
j
++
)
{
if
(
ares
[
idx
].
ignore
)
continue
;
if
(
j
==
0
)
share
=
0
;
if
(
j
==
1
)
share
=
FILE_SHARE_READ
;
if
(
j
==
2
)
share
=
FILE_SHARE_WRITE
;
...
...
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