Paul Vriens wrote:
>Hi,
>
>the Media Types use "Source Filter" instead of "File Source" in the registry.
>
>Changelog:
>Media Types should use "Source Filter" instead of "File Source"
>
>Cheers,
>
>Paul Vriens.
>
>------------------------------------------------------------------------
>
>--- regsvr.org.c 2005-01-05 11:37:05.894187368 +0100
>+++ regsvr.c 2005-01-05 12:39:03.985260298 +0100
>@@ -130,6 +130,8 @@
> 'S', 'u', 'b', 't', 'y', 'p', 'e', 0 };
> static WCHAR const filesource_valuename[12] = {
> 'F', 'i', 'l', 'e', ' ', 'S', 'o', 'u', 'r', 'c', 'e', 0 };
>+static WCHAR const sourcefilter_valuename[14] = {
>+ 'S', 'o', 'u', 'r', 'c', 'e', ' ', 'F', 'i', 'l', 't', 'e', 'r', 0 };
> static WCHAR const extensions_keyname[11] = {
> 'E', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 's', 0 };
>
>@@ -391,7 +393,7 @@
> if (res != ERROR_SUCCESS) goto error_close_keys;
>
> StringFromGUID2(&CLSID_AsyncReader, buf, 39);
>- res = RegSetValueExW(subtype_key, filesource_valuename, 0, REG_SZ, (CONST BYTE*)buf,
>+ res = RegSetValueExW(subtype_key, sourcefilter_valuename, 0, REG_SZ, (CONST BYTE*)buf,
> (lstrlenW(buf) + 1) * sizeof(WCHAR));
> if (res != ERROR_SUCCESS) goto error_close_keys;
>
>
Good catch!
It would be good to do the same for register_mediatypes_extension and
then remove the filesource string.
Bye,
Christian