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
1027c20c
Commit
1027c20c
authored
Jul 25, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Add IFileSystem3::GetAbsolutePathName implementation.
parent
ac132599
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
2 deletions
+47
-2
filesystem.c
dlls/scrrun/filesystem.c
+47
-2
No files found.
dlls/scrrun/filesystem.c
View file @
1027c20c
...
...
@@ -862,9 +862,54 @@ static HRESULT WINAPI filesys_GetExtensionName(IFileSystem3 *iface, BSTR Path,
static
HRESULT
WINAPI
filesys_GetAbsolutePathName
(
IFileSystem3
*
iface
,
BSTR
Path
,
BSTR
*
pbstrResult
)
{
FIXME
(
"%p %s %p
\n
"
,
iface
,
debugstr_w
(
Path
),
pbstrResult
)
;
static
const
WCHAR
cur_path
[]
=
{
'.'
,
0
}
;
return
E_NOTIMPL
;
WCHAR
buf
[
MAX_PATH
],
ch
;
const
WCHAR
*
path
;
DWORD
i
,
beg
,
len
,
exp_len
;
WIN32_FIND_DATAW
fdata
;
HANDLE
fh
;
TRACE
(
"%p %s %p
\n
"
,
iface
,
debugstr_w
(
Path
),
pbstrResult
);
if
(
!
pbstrResult
)
return
E_POINTER
;
if
(
!
Path
)
path
=
cur_path
;
else
path
=
Path
;
len
=
GetFullPathNameW
(
path
,
MAX_PATH
,
buf
,
NULL
);
if
(
!
len
)
return
E_FAIL
;
buf
[
0
]
=
toupperW
(
buf
[
0
]);
if
(
len
>
3
&&
buf
[
len
-
1
]
==
'\\'
)
buf
[
--
len
]
=
0
;
for
(
beg
=
3
,
i
=
3
;
i
<=
len
;
i
++
)
{
if
(
buf
[
i
]
!=
'\\'
&&
buf
[
i
])
continue
;
ch
=
buf
[
i
];
buf
[
i
]
=
0
;
fh
=
FindFirstFileW
(
buf
,
&
fdata
);
if
(
fh
==
INVALID_HANDLE_VALUE
)
break
;
exp_len
=
strlenW
(
fdata
.
cFileName
);
if
(
exp_len
==
i
-
beg
)
memcpy
(
buf
+
beg
,
fdata
.
cFileName
,
exp_len
*
sizeof
(
WCHAR
));
FindClose
(
fh
);
buf
[
i
]
=
ch
;
beg
=
i
+
1
;
}
*
pbstrResult
=
SysAllocString
(
buf
);
if
(
!*
pbstrResult
)
return
E_OUTOFMEMORY
;
return
S_OK
;
}
static
HRESULT
WINAPI
filesys_GetTempName
(
IFileSystem3
*
iface
,
BSTR
*
pbstrResult
)
...
...
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