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
10abbae0
Commit
10abbae0
authored
Sep 07, 2001
by
Guy L. Albertelli
Committed by
Alexandre Julliard
Sep 07, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Finish PathParseIconLocation{A|W}.
- Implement PathIsUNCServer{A|W|ShareA|ShareW}.
parent
e29612af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
14 deletions
+66
-14
path.c
dlls/shlwapi/path.c
+66
-14
No files found.
dlls/shlwapi/path.c
View file @
10abbae0
...
...
@@ -16,6 +16,8 @@
DEFAULT_DEBUG_CHANNEL
(
shell
);
INT
__cdecl
_wtoi
(
LPWSTR
string
);
#define isSlash(x) ((x)=='\\' || (x)=='/')
/*
########## Combining and Constructing paths ##########
...
...
@@ -732,17 +734,18 @@ VOID WINAPI PathUnquoteSpacesW(LPWSTR str)
int
WINAPI
PathParseIconLocationA
(
LPSTR
lpszPath
)
{
LPSTR
lpstrComma
=
strchr
(
lpszPath
,
','
);
int
ret
=
0
;
FIXME
(
"%s stub
\n
"
,
debugstr_a
(
lpszPath
));
TRACE
(
"%s
\n
"
,
debugstr_a
(
lpszPath
));
if
(
lpstrComma
&&
lpstrComma
[
1
])
{
lpstrComma
[
0
]
=
'\0'
;
/* return atoi(&lpstrComma[1]); FIXME */
ret
=
atoi
(
&
lpstrComma
[
1
]);
}
PathUnquoteSpacesA
(
lpszPath
);
return
0
;
return
ret
;
}
/*************************************************************************
...
...
@@ -751,16 +754,17 @@ int WINAPI PathParseIconLocationA(LPSTR lpszPath)
int
WINAPI
PathParseIconLocationW
(
LPWSTR
lpszPath
)
{
LPWSTR
lpstrComma
=
strchrW
(
lpszPath
,
','
);
int
ret
=
0
;
FIXME
(
"%s stub
\n
"
,
debugstr_w
(
lpszPath
));
TRACE
(
"%s
\n
"
,
debugstr_w
(
lpszPath
));
if
(
lpstrComma
&&
lpstrComma
[
1
])
{
lpstrComma
[
0
]
=
'\0'
;
/* return _wtoi(&lpstrComma[1]); FIXME */
ret
=
_wtoi
(
&
lpstrComma
[
1
]);
}
PathUnquoteSpacesW
(
lpszPath
);
return
0
;
return
ret
;
}
/*
...
...
@@ -1277,9 +1281,21 @@ BOOL WINAPI PathIsSystemFolderW(LPCWSTR pszPath, DWORD dwAttrb)
* PathIsUNCServerA [SHLWAPI.@]
*/
BOOL
WINAPI
PathIsUNCServerA
(
LPCSTR
pszPath
)
LPCSTR
l
pszPath
)
{
FIXME
(
"%s
\n
"
,
pszPath
);
TRACE
(
"%s
\n
"
,
debugstr_a
(
lpszPath
));
if
(
lpszPath
[
0
]
==
'\\'
&&
lpszPath
[
1
]
==
'\\'
)
{
int
foundbackslash
=
0
;
lpszPath
+=
2
;
while
(
*
lpszPath
)
{
if
(
*
lpszPath
==
'\\'
)
foundbackslash
++
;
lpszPath
=
CharNextA
(
lpszPath
);
}
if
(
foundbackslash
==
0
)
return
TRUE
;
}
return
FALSE
;
}
...
...
@@ -1287,9 +1303,21 @@ BOOL WINAPI PathIsUNCServerA(
* PathIsUNCServerW [SHLWAPI.@]
*/
BOOL
WINAPI
PathIsUNCServerW
(
LPCWSTR
pszPath
)
LPCWSTR
l
pszPath
)
{
FIXME
(
"%s
\n
"
,
debugstr_w
(
pszPath
));
TRACE
(
"%s
\n
"
,
debugstr_w
(
lpszPath
));
if
(
lpszPath
[
0
]
==
'\\'
&&
lpszPath
[
1
]
==
'\\'
)
{
int
foundbackslash
=
0
;
lpszPath
+=
2
;
while
(
*
lpszPath
)
{
if
(
*
lpszPath
==
'\\'
)
foundbackslash
++
;
lpszPath
=
CharNextW
(
lpszPath
);
}
if
(
foundbackslash
==
0
)
return
TRUE
;
}
return
FALSE
;
}
...
...
@@ -1297,9 +1325,21 @@ BOOL WINAPI PathIsUNCServerW(
* PathIsUNCServerShareA [SHLWAPI.@]
*/
BOOL
WINAPI
PathIsUNCServerShareA
(
LPCSTR
pszPath
)
LPCSTR
l
pszPath
)
{
FIXME
(
"%s
\n
"
,
pszPath
);
TRACE
(
"%s
\n
"
,
debugstr_a
(
lpszPath
));
if
(
lpszPath
[
0
]
==
'\\'
&&
lpszPath
[
1
]
==
'\\'
)
{
int
foundbackslash
=
0
;
lpszPath
+=
2
;
while
(
*
lpszPath
)
{
if
(
*
lpszPath
==
'\\'
)
foundbackslash
++
;
lpszPath
=
CharNextA
(
lpszPath
);
}
if
(
foundbackslash
==
1
)
return
TRUE
;
}
return
FALSE
;
}
...
...
@@ -1307,9 +1347,21 @@ BOOL WINAPI PathIsUNCServerShareA(
* PathIsUNCServerShareW [SHLWAPI.@]
*/
BOOL
WINAPI
PathIsUNCServerShareW
(
LPCWSTR
pszPath
)
LPCWSTR
l
pszPath
)
{
FIXME
(
"%s
\n
"
,
debugstr_w
(
pszPath
));
TRACE
(
"%s
\n
"
,
debugstr_w
(
lpszPath
));
if
(
lpszPath
[
0
]
==
'\\'
&&
lpszPath
[
1
]
==
'\\'
)
{
int
foundbackslash
=
0
;
lpszPath
+=
2
;
while
(
*
lpszPath
)
{
if
(
*
lpszPath
==
'\\'
)
foundbackslash
++
;
lpszPath
=
CharNextW
(
lpszPath
);
}
if
(
foundbackslash
==
1
)
return
TRUE
;
}
return
FALSE
;
}
...
...
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