msi: Support _Streams, _Storages tablename prefixes in SELECT.
This commit is contained in:
parent
f7ba4b2ec0
commit
abb23d8bd5
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue