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
c160b944
Commit
c160b944
authored
Jan 18, 2009
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jan 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Support the content type query.
parent
59360ced
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
assoc.c
dlls/shlwapi/assoc.c
+26
-0
No files found.
dlls/shlwapi/assoc.c
View file @
c160b944
...
...
@@ -825,6 +825,32 @@ get_friendly_name_fail:
return
ASSOC_ReturnData
(
pszOut
,
pcchOut
,
path
,
strlenW
(
path
)
+
1
);
}
case
ASSOCSTR_CONTENTTYPE
:
{
static
const
WCHAR
Content_TypeW
[]
=
{
'C'
,
'o'
,
'n'
,
't'
,
'e'
,
'n'
,
't'
,
' '
,
'T'
,
'y'
,
'p'
,
'e'
,
0
};
WCHAR
*
contentType
;
DWORD
ret
;
DWORD
size
;
size
=
0
;
ret
=
RegGetValueW
(
This
->
hkeySource
,
NULL
,
Content_TypeW
,
RRF_RT_REG_SZ
,
NULL
,
NULL
,
&
size
);
if
(
ret
!=
ERROR_SUCCESS
)
return
HRESULT_FROM_WIN32
(
ret
);
contentType
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
contentType
!=
NULL
)
{
ret
=
RegGetValueW
(
This
->
hkeySource
,
NULL
,
Content_TypeW
,
RRF_RT_REG_SZ
,
NULL
,
contentType
,
&
size
);
if
(
ret
==
ERROR_SUCCESS
)
hr
=
ASSOC_ReturnData
(
pszOut
,
pcchOut
,
contentType
,
strlenW
(
contentType
)
+
1
);
else
hr
=
HRESULT_FROM_WIN32
(
ret
);
HeapFree
(
GetProcessHeap
(),
0
,
contentType
);
}
else
hr
=
E_OUTOFMEMORY
;
return
hr
;
}
default:
FIXME
(
"assocstr %d unimplemented!
\n
"
,
str
);
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