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
a9c88905
Commit
a9c88905
authored
Mar 10, 2001
by
Gerard Patel
Committed by
Alexandre Julliard
Mar 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle empty strings and invalid values in lpstrInitialDir for 32 bits
open file dialogs.
parent
c2c004de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
filedlg95.c
dlls/commdlg/filedlg95.c
+3
-2
shlfolder.c
dlls/shell32/shlfolder.c
+4
-1
No files found.
dlls/commdlg/filedlg95.c
View file @
a9c88905
...
...
@@ -2693,7 +2693,7 @@ LPITEMIDLIST GetParentPidl(LPITEMIDLIST pidl)
* GetPidlFromName
*
* returns the pidl of the file name relative to folder
* NULL if an error occured
* NULL if an error occur
r
ed
*/
LPITEMIDLIST
GetPidlFromName
(
IShellFolder
*
lpsf
,
LPCSTR
lpcstrFileName
)
{
...
...
@@ -2704,7 +2704,8 @@ LPITEMIDLIST GetPidlFromName(IShellFolder *lpsf,LPCSTR lpcstrFileName)
TRACE
(
"sf=%p file=%s
\n
"
,
lpsf
,
lpcstrFileName
);
if
(
!
lpcstrFileName
)
return
NULL
;
if
(
!*
lpcstrFileName
)
return
NULL
;
MultiByteToWideChar
(
CP_ACP
,
MB_PRECOMPOSED
,
lpcstrFileName
,
-
1
,(
LPWSTR
)
lpwstrDirName
,
MAX_PATH
);
if
(
!
lpsf
)
...
...
dlls/shell32/shlfolder.c
View file @
a9c88905
...
...
@@ -682,7 +682,10 @@ static HRESULT WINAPI IShellFolder_fnParseDisplayName(
}
}
*
ppidl
=
pidlTemp
;
if
(
!
hr
)
*
ppidl
=
pidlTemp
;
else
*
ppidl
=
NULL
;
TRACE
(
"(%p)->(-- pidl=%p ret=0x%08lx)
\n
"
,
This
,
ppidl
?
*
ppidl
:
0
,
hr
);
...
...
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