Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
924538f2
Commit
924538f2
authored
Mar 27, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Handle ASSOCDATA_EDITFLAGS in IQueryAssociations:GetData function.
parent
d55061b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
11 deletions
+31
-11
assoc.c
dlls/shell32/assoc.c
+31
-11
No files found.
dlls/shell32/assoc.c
View file @
924538f2
...
...
@@ -670,19 +670,39 @@ static HRESULT WINAPI IQueryAssociations_fnGetKey(
* Success: S_OK. pszOut contains the data, pcbOut contains its length.
* Failure: An HRESULT error code indicating the error.
*/
static
HRESULT
WINAPI
IQueryAssociations_fnGetData
(
IQueryAssociations
*
iface
,
ASSOCF
cfFlags
,
ASSOCDATA
assocdata
,
LPCWSTR
pszExtra
,
LPVOID
pvOut
,
DWORD
*
pcbOut
)
static
HRESULT
WINAPI
IQueryAssociations_fnGetData
(
IQueryAssociations
*
iface
,
ASSOCF
cfFlags
,
ASSOCDATA
assocdata
,
LPCWSTR
pszExtra
,
LPVOID
pvOut
,
DWORD
*
pcbOut
)
{
IQueryAssociationsImpl
*
This
=
impl_from_IQueryAssociations
(
iface
)
;
static
const
WCHAR
edit_flags
[]
=
{
'E'
,
'd'
,
'i'
,
't'
,
'F'
,
'l'
,
'a'
,
'g'
,
's'
,
0
}
;
FIXME
(
"(%p,0x%8x,0x%8x,%s,%p,%p)-stub!
\n
"
,
This
,
cfFlags
,
assocdata
,
debugstr_w
(
pszExtra
),
pvOut
,
pcbOut
);
return
E_NOTIMPL
;
IQueryAssociationsImpl
*
This
=
impl_from_IQueryAssociations
(
iface
);
void
*
data
;
DWORD
size
;
HRESULT
hres
;
TRACE
(
"(%p,0x%8x,0x%8x,%s,%p,%p)
\n
"
,
This
,
cfFlags
,
assocdata
,
debugstr_w
(
pszExtra
),
pvOut
,
pcbOut
);
if
(
cfFlags
)
FIXME
(
"Unsupported flags: %x
\n
"
,
cfFlags
);
switch
(
assocdata
)
{
case
ASSOCDATA_EDITFLAGS
:
if
(
!
This
->
hkeyProgID
)
return
HRESULT_FROM_WIN32
(
ERROR_NO_ASSOCIATION
);
hres
=
ASSOC_GetValue
(
This
->
hkeyProgID
,
edit_flags
,
&
data
,
&
size
);
if
(
FAILED
(
hres
)
||
!
pcbOut
)
return
hres
;
hres
=
ASSOC_ReturnData
(
pvOut
,
pcbOut
,
data
,
size
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
return
hres
;
default:
FIXME
(
"Unsupported ASSOCDATA value: %d
\n
"
,
assocdata
);
return
E_NOTIMPL
;
}
}
/**************************************************************************
...
...
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