msi: Support _Streams, _Storages tablename prefixes in SELECT.

This commit is contained in:
Nathan Gallaher 2009-11-12 22:59:03 -05:00 committed by Alexandre Julliard
parent f7ba4b2ec0
commit abb23d8bd5
2 changed files with 22 additions and 0 deletions

View File

@ -296,6 +296,7 @@ static UINT STORAGES_get_column_info(struct tagMSIVIEW *view, UINT n,
static const WCHAR Name[] = {'N','a','m','e',0}; static const WCHAR Name[] = {'N','a','m','e',0};
static const WCHAR Data[] = {'D','a','t','a',0}; static const WCHAR Data[] = {'D','a','t','a',0};
static const WCHAR _Storages[] = {'_','S','t','o','r','a','g','e','s',0};
TRACE("(%p, %d, %p, %p, %p, %p)\n", view, n, name, type, temporary, TRACE("(%p, %d, %p, %p, %p, %p)\n", view, n, name, type, temporary,
table_name); table_name);
@ -322,6 +323,16 @@ static UINT STORAGES_get_column_info(struct tagMSIVIEW *view, UINT n,
if (!*name) return ERROR_FUNCTION_FAILED; if (!*name) return ERROR_FUNCTION_FAILED;
} }
if (table_name)
{
*table_name = strdupW(_Storages);
if (!*table_name)
{
msi_free(name);
return ERROR_FUNCTION_FAILED;
}
}
if (temporary) if (temporary)
*temporary = FALSE; *temporary = FALSE;

View File

@ -262,6 +262,7 @@ static UINT STREAMS_get_column_info(struct tagMSIVIEW *view, UINT n,
static const WCHAR Name[] = {'N','a','m','e',0}; static const WCHAR Name[] = {'N','a','m','e',0};
static const WCHAR Data[] = {'D','a','t','a',0}; static const WCHAR Data[] = {'D','a','t','a',0};
static const WCHAR _Streams[] = {'_','S','t','r','e','a','m','s',0};
TRACE("(%p, %d, %p, %p, %p, %p)\n", view, n, name, type, temporary, TRACE("(%p, %d, %p, %p, %p, %p)\n", view, n, name, type, temporary,
table_name); table_name);
@ -288,6 +289,16 @@ static UINT STREAMS_get_column_info(struct tagMSIVIEW *view, UINT n,
if (!*name) return ERROR_FUNCTION_FAILED; if (!*name) return ERROR_FUNCTION_FAILED;
} }
if (table_name)
{
*table_name = strdupW(_Streams);
if (!*table_name)
{
msi_free(name);
return ERROR_FUNCTION_FAILED;
}
}
if (temporary) if (temporary)
*temporary = FALSE; *temporary = FALSE;