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
3ee9f240
Commit
3ee9f240
authored
Jan 07, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Implement Name() property for File.
parent
6dbc8195
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
filesystem.c
dlls/scrrun/filesystem.c
+21
-3
No files found.
dlls/scrrun/filesystem.c
View file @
3ee9f240
...
...
@@ -1559,11 +1559,29 @@ static HRESULT WINAPI file_get_Path(IFile *iface, BSTR *pbstrPath)
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
file_get_Name
(
IFile
*
iface
,
BSTR
*
pbstrN
ame
)
static
HRESULT
WINAPI
file_get_Name
(
IFile
*
iface
,
BSTR
*
n
ame
)
{
struct
file
*
This
=
impl_from_IFile
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pbstrName
);
return
E_NOTIMPL
;
WCHAR
*
ptr
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
name
);
if
(
!
name
)
return
E_POINTER
;
*
name
=
NULL
;
ptr
=
strrchrW
(
This
->
path
,
'\\'
);
if
(
ptr
)
{
*
name
=
SysAllocString
(
ptr
+
1
);
TRACE
(
"%s
\n
"
,
debugstr_w
(
*
name
));
if
(
!*
name
)
return
E_OUTOFMEMORY
;
}
else
return
E_FAIL
;
return
S_OK
;
}
static
HRESULT
WINAPI
file_put_Name
(
IFile
*
iface
,
BSTR
pbstrName
)
...
...
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