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
4135874f
Commit
4135874f
authored
Jul 30, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Add IFile::get_Attributes implementation.
parent
1257db21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
filesystem.c
dlls/scrrun/filesystem.c
+13
-2
filesystem.c
dlls/scrrun/tests/filesystem.c
+7
-0
No files found.
dlls/scrrun/filesystem.c
View file @
4135874f
...
...
@@ -778,8 +778,19 @@ static HRESULT WINAPI file_get_ParentFolder(IFile *iface, IFolder **ppfolder)
static
HRESULT
WINAPI
file_get_Attributes
(
IFile
*
iface
,
FileAttribute
*
pfa
)
{
struct
file
*
This
=
impl_from_IFile
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pfa
);
return
E_NOTIMPL
;
DWORD
fa
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pfa
);
if
(
!
pfa
)
return
E_POINTER
;
fa
=
GetFileAttributesW
(
This
->
path
);
if
(
fa
==
INVALID_FILE_ATTRIBUTES
)
return
create_error
(
GetLastError
());
*
pfa
=
fa
&
~
FILE_ATTRIBUTE_NORMAL
;
return
S_OK
;
}
static
HRESULT
WINAPI
file_put_Attributes
(
IFile
*
iface
,
FileAttribute
pfa
)
...
...
dlls/scrrun/tests/filesystem.c
View file @
4135874f
...
...
@@ -466,6 +466,8 @@ static void test_GetFile(void)
static
const
WCHAR
get_file
[]
=
{
'g'
,
'e'
,
't'
,
'_'
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
't'
,
's'
,
't'
,
0
};
BSTR
path
=
SysAllocString
(
get_file
);
FileAttribute
fa
;
DWORD
gfa
;
IFile
*
file
;
HRESULT
hr
;
HANDLE
hf
;
...
...
@@ -498,6 +500,11 @@ static void test_GetFile(void)
hr
=
IFileSystem3_GetFile
(
fs3
,
path
,
&
file
);
ok
(
hr
==
S_OK
,
"GetFile returned %x, expected S_OK
\n
"
,
hr
);
hr
=
IFile_get_Attributes
(
file
,
&
fa
);
gfa
=
GetFileAttributesW
(
get_file
)
&
~
FILE_ATTRIBUTE_NORMAL
;
ok
(
hr
==
S_OK
,
"get_Attributes returned %x, expected S_OK
\n
"
,
hr
);
ok
(
fa
==
gfa
,
"fa = %x, expected %x
\n
"
,
fa
,
gfa
);
IFile_Release
(
file
);
DeleteFileW
(
path
);
...
...
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