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
4e0100ff
Commit
4e0100ff
authored
Feb 25, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Feb 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Fix checks for failure of COMDLG32_SHGetFolderPathW in FILEDLG95_InitControls.
COMDLG32_SHGetFolderPathW returns a BOOL, not an HRESULT.
parent
03812357
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
filedlg.c
dlls/comdlg32/filedlg.c
+2
-2
No files found.
dlls/comdlg32/filedlg.c
View file @
4e0100ff
...
@@ -1373,9 +1373,9 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
...
@@ -1373,9 +1373,9 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
if
(
handledPath
==
FALSE
&&
(
win2000plus
||
win98plus
))
{
if
(
handledPath
==
FALSE
&&
(
win2000plus
||
win98plus
))
{
fodInfos
->
initdir
=
MemAlloc
(
MAX_PATH
*
sizeof
(
WCHAR
));
fodInfos
->
initdir
=
MemAlloc
(
MAX_PATH
*
sizeof
(
WCHAR
));
if
(
FAILED
(
COMDLG32_SHGetFolderPathW
(
hwnd
,
CSIDL_PERSONAL
,
0
,
0
,
fodInfos
->
initdir
)
))
if
(
!
COMDLG32_SHGetFolderPathW
(
hwnd
,
CSIDL_PERSONAL
,
0
,
0
,
fodInfos
->
initdir
))
{
{
if
(
FAILED
(
COMDLG32_SHGetFolderPathW
(
hwnd
,
CSIDL_DESKTOPDIRECTORY
|
CSIDL_FLAG_CREATE
,
0
,
0
,
fodInfos
->
initdir
)
))
if
(
!
COMDLG32_SHGetFolderPathW
(
hwnd
,
CSIDL_DESKTOPDIRECTORY
|
CSIDL_FLAG_CREATE
,
0
,
0
,
fodInfos
->
initdir
))
{
{
/* last fallback */
/* last fallback */
GetCurrentDirectoryW
(
MAX_PATH
,
fodInfos
->
initdir
);
GetCurrentDirectoryW
(
MAX_PATH
,
fodInfos
->
initdir
);
...
...
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