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
7af8b13f
Commit
7af8b13f
authored
Jan 21, 2004
by
Rolf Kalbermatter
Committed by
Alexandre Julliard
Jan 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement PathGetShortPathA/W and change its prototype to match the
documentation on MSDN.
parent
9d78f678
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
11 deletions
+26
-11
shellpath.c
dlls/shell32/shellpath.c
+21
-9
undocshell.h
dlls/shell32/undocshell.h
+0
-2
shlobj.h
include/shlobj.h
+5
-0
No files found.
dlls/shell32/shellpath.c
View file @
7af8b13f
...
...
@@ -236,29 +236,41 @@ void WINAPI PathRemoveExtensionAW(LPVOID lpszPath)
/*************************************************************************
* PathGetShortPathA [internal]
*/
LPSTR
WINAPI
PathGetShortPathA
(
LPSTR
l
pszPath
)
static
void
PathGetShortPathA
(
LPSTR
pszPath
)
{
FIXME
(
"%s stub
\n
"
,
lpszPath
);
return
NULL
;
CHAR
path
[
MAX_PATH
];
TRACE
(
"%s
\n
"
,
pszPath
);
if
(
GetShortPathNameA
(
pszPath
,
path
,
MAX_PATH
))
{
lstrcpyA
(
pszPath
,
path
);
}
}
/*************************************************************************
* PathGetShortPathW [internal]
*/
LPWSTR
WINAPI
PathGetShortPathW
(
LPWSTR
l
pszPath
)
static
void
PathGetShortPathW
(
LPWSTR
pszPath
)
{
FIXME
(
"%s stub
\n
"
,
debugstr_w
(
lpszPath
));
return
NULL
;
WCHAR
path
[
MAX_PATH
];
TRACE
(
"%s
\n
"
,
debugstr_w
(
pszPath
));
if
(
GetShortPathNameW
(
pszPath
,
path
,
MAX_PATH
))
{
lstrcpyW
(
pszPath
,
path
);
}
}
/*************************************************************************
* PathGetShortPath [SHELL32.92]
*/
LPVOID
WINAPI
PathGetShortPathAW
(
LPVOID
l
pszPath
)
VOID
WINAPI
PathGetShortPathAW
(
LPVOID
pszPath
)
{
if
(
SHELL_OsIsUnicode
())
return
PathGetShortPathW
(
l
pszPath
);
return
PathGetShortPathA
(
l
pszPath
);
PathGetShortPathW
(
pszPath
);
PathGetShortPathA
(
pszPath
);
}
/*************************************************************************
...
...
dlls/shell32/undocshell.h
View file @
7af8b13f
...
...
@@ -544,8 +544,6 @@ LPVOID WINAPI PathGetArgsAW(LPVOID lpszPath);
BOOL
WINAPI
PathRemoveFileSpecAW
(
LPVOID
lpszPath
);
LPVOID
WINAPI
PathGetShortPathAW
(
LPVOID
lpszPath
);
void
WINAPI
PathRemoveBlanksAW
(
LPVOID
lpszPath
);
VOID
WINAPI
PathQuoteSpacesAW
(
LPVOID
path
);
...
...
include/shlobj.h
View file @
7af8b13f
...
...
@@ -841,6 +841,11 @@ typedef struct _FILEGROUPDESCRIPTORW {
DECL_WINELIB_TYPE_AW
(
FILEGROUPDESCRIPTOR
)
DECL_WINELIB_TYPE_AW
(
LPFILEGROUPDESCRIPTOR
)
/****************************************************************************
* Path Manipulation Routines
*/
VOID
WINAPI
PathGetShortPath
(
LPWSTR
pszPath
);
#include <poppack.h>
/*****************************************************************************
...
...
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