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
4c5af80c
Commit
4c5af80c
authored
Jun 07, 2000
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jun 07, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PathFindNextComponent: return pointer to NULL and not NULL.
parent
d9ac53f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
filedlg95.c
dlls/commdlg/filedlg95.c
+2
-1
shellpath.c
dlls/shell32/shellpath.c
+6
-4
No files found.
dlls/commdlg/filedlg95.c
View file @
4c5af80c
...
...
@@ -1242,7 +1242,8 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
WCHAR
lpwstrTemp
[
MAX_PATH
];
DWORD
dwEaten
,
dwAttributes
;
if
((
lpszTemp
=
COMDLG32_PathFindNextComponentA
(
lpszTemp
)))
lpszTemp
=
COMDLG32_PathFindNextComponentA
(
lpszTemp
);
if
(
*
lpszTemp
)
lstrcpynAtoW
(
lpwstrTemp
,
lpszTemp1
,
lpszTemp
-
lpszTemp1
);
else
{
...
...
dlls/shell32/shellpath.c
View file @
4c5af80c
...
...
@@ -2177,15 +2177,17 @@ BOOL WINAPI PathCanonicalizeW(LPWSTR pszBuf, LPCWSTR pszPath)
/*************************************************************************
* PathFindNextComponentA
*
* Windows returns a pointer NULL (BO 000605)
*/
LPSTR
WINAPI
PathFindNextComponentA
(
LPCSTR
pszPath
)
{
while
(
*
pszPath
)
{
if
(
*
pszPath
++==
'\\'
)
return
(
LPSTR
)((
*
pszPath
)
?
pszPath
:
NULL
)
;
return
pszPath
;
}
return
NULL
;
return
pszPath
;
}
/*************************************************************************
...
...
@@ -2196,9 +2198,9 @@ LPWSTR WINAPI PathFindNextComponentW(LPCWSTR pszPath)
while
(
*
pszPath
)
{
if
(
*
pszPath
++==
'\\'
)
return
(
LPWSTR
)((
*
pszPath
)
?
pszPath
:
NULL
)
;
return
pszPath
;
}
return
NULL
;
return
pszPath
;
}
/*************************************************************************
...
...
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