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
661bbbd0
Commit
661bbbd0
authored
May 09, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
May 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Implement ASSOCSTR_SHELLEXTENSION.
parent
6f15ca3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
assoc.c
dlls/shell32/assoc.c
+25
-1
No files found.
dlls/shell32/assoc.c
View file @
661bbbd0
...
...
@@ -429,7 +429,7 @@ static HRESULT WINAPI IQueryAssociations_fnGetString(
HRESULT
hr
;
WCHAR
path
[
MAX_PATH
];
TRACE
(
"(%p,0x%
8x,0x%8x
,%s,%p,%p)
\n
"
,
This
,
cfFlags
,
str
,
TRACE
(
"(%p,0x%
08x,%u
,%s,%p,%p)
\n
"
,
This
,
cfFlags
,
str
,
debugstr_w
(
pszExtra
),
pszOut
,
pcchOut
);
if
(
cfFlags
&
cfUnimplemented
)
...
...
@@ -616,6 +616,30 @@ get_friendly_name_fail:
HeapFree
(
GetProcessHeap
(),
0
,
pszFileType
);
return
hr
;
}
case
ASSOCSTR_SHELLEXTENSION
:
{
static
const
WCHAR
shellexW
[]
=
{
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
'E'
,
'x'
,
'\\'
,
0
};
WCHAR
keypath
[
sizeof
(
shellexW
)
/
sizeof
(
shellexW
[
0
])
+
39
],
guid
[
39
];
CLSID
clsid
;
HKEY
hkey
;
DWORD
size
;
LONG
ret
;
hr
=
CLSIDFromString
(
pszExtra
,
&
clsid
);
if
(
FAILED
(
hr
))
return
hr
;
strcpyW
(
keypath
,
shellexW
);
strcatW
(
keypath
,
pszExtra
);
ret
=
RegOpenKeyExW
(
This
->
hkeySource
,
keypath
,
0
,
KEY_READ
,
&
hkey
);
if
(
ret
)
return
HRESULT_FROM_WIN32
(
ret
);
size
=
sizeof
(
guid
);
ret
=
RegGetValueW
(
hkey
,
NULL
,
NULL
,
RRF_RT_REG_SZ
,
NULL
,
guid
,
&
size
);
RegCloseKey
(
hkey
);
if
(
ret
)
return
HRESULT_FROM_WIN32
(
ret
);
return
ASSOC_ReturnString
(
pszOut
,
pcchOut
,
guid
,
size
/
sizeof
(
WCHAR
));
}
default:
FIXME
(
"assocstr %d unimplemented!
\n
"
,
str
);
...
...
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