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
d7d05848
Commit
d7d05848
authored
Feb 27, 2015
by
Andrew Eikum
Committed by
Alexandre Julliard
Mar 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Rearrange error handling in IKnownFolder::GetFolderDefinition.
parent
41556170
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
shellpath.c
dlls/shell32/shellpath.c
+15
-10
No files found.
dlls/shell32/shellpath.c
View file @
d7d05848
...
...
@@ -3675,20 +3675,25 @@ static HRESULT WINAPI knownfolder_GetFolderDefinition(
ZeroMemory
(
pKFD
,
sizeof
(
*
pKFD
));
hr
=
get_known_folder_category
(
knownfolder
->
registryPath
,
&
pKFD
->
category
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
SUCCEEDED
(
hr
))
hr
=
HRESULT_FROM_WIN32
(
RegGetValueW
(
HKEY_LOCAL_MACHINE
,
knownfolder
->
registryPath
,
szName
,
RRF_RT_REG_SZ
,
NULL
,
NULL
,
&
dwSize
));
hr
=
HRESULT_FROM_WIN32
(
RegGetValueW
(
HKEY_LOCAL_MACHINE
,
knownfolder
->
registryPath
,
szName
,
RRF_RT_REG_SZ
,
NULL
,
NULL
,
&
dwSize
));
if
(
FAILED
(
hr
))
return
hr
;
if
(
SUCCEEDED
(
hr
))
{
pKFD
->
pszName
=
CoTaskMemAlloc
(
dwSize
);
if
(
!
pKFD
->
pszName
)
hr
=
E_OUTOFMEMORY
;
}
pKFD
->
pszName
=
CoTaskMemAlloc
(
dwSize
);
if
(
!
pKFD
->
pszName
)
return
E_OUTOFMEMORY
;
if
(
SUCCEEDED
(
hr
))
hr
=
HRESULT_FROM_WIN32
(
RegGetValueW
(
HKEY_LOCAL_MACHINE
,
knownfolder
->
registryPath
,
szName
,
RRF_RT_REG_SZ
,
NULL
,
pKFD
->
pszName
,
&
dwSize
));
hr
=
HRESULT_FROM_WIN32
(
RegGetValueW
(
HKEY_LOCAL_MACHINE
,
knownfolder
->
registryPath
,
szName
,
RRF_RT_REG_SZ
,
NULL
,
pKFD
->
pszName
,
&
dwSize
));
if
(
FAILED
(
hr
)){
CoTaskMemFree
(
pKFD
->
pszName
);
pKFD
->
pszName
=
NULL
;
return
hr
;
}
return
hr
;
return
S_OK
;
}
static
const
struct
IKnownFolderVtbl
knownfolder_vtbl
=
...
...
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