Implement MsiGetShortcutTargetA.
This commit is contained in:
parent
8e22e7d7a9
commit
170278dfe0
|
@ -1740,15 +1740,33 @@ UINT WINAPI MsiGetShortcutTargetA( LPCSTR szShortcutTarget,
|
||||||
LPSTR szProductCode, LPSTR szFeatureId,
|
LPSTR szProductCode, LPSTR szFeatureId,
|
||||||
LPSTR szComponentCode )
|
LPSTR szComponentCode )
|
||||||
{
|
{
|
||||||
FIXME("\n");
|
LPWSTR target;
|
||||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
const int len = MAX_FEATURE_CHARS+1;
|
||||||
|
WCHAR product[MAX_FEATURE_CHARS+1], feature[MAX_FEATURE_CHARS+1], component[MAX_FEATURE_CHARS+1];
|
||||||
|
UINT r;
|
||||||
|
|
||||||
|
target = strdupAtoW( szShortcutTarget );
|
||||||
|
if (szShortcutTarget && !target )
|
||||||
|
return ERROR_OUTOFMEMORY;
|
||||||
|
product[0] = 0;
|
||||||
|
feature[0] = 0;
|
||||||
|
component[0] = 0;
|
||||||
|
r = MsiGetShortcutTargetW( target, product, feature, component );
|
||||||
|
msi_free( target );
|
||||||
|
if (r == ERROR_SUCCESS)
|
||||||
|
{
|
||||||
|
WideCharToMultiByte( CP_ACP, 0, product, -1, szProductCode, len, NULL, NULL );
|
||||||
|
WideCharToMultiByte( CP_ACP, 0, feature, -1, szFeatureId, len, NULL, NULL );
|
||||||
|
WideCharToMultiByte( CP_ACP, 0, component, -1, szComponentCode, len, NULL, NULL );
|
||||||
|
}
|
||||||
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT WINAPI MsiGetShortcutTargetW( LPCWSTR szShortcutTarget,
|
UINT WINAPI MsiGetShortcutTargetW( LPCWSTR szShortcutTarget,
|
||||||
LPWSTR szProductCode, LPWSTR szFeatureId,
|
LPWSTR szProductCode, LPWSTR szFeatureId,
|
||||||
LPWSTR szComponentCode )
|
LPWSTR szComponentCode )
|
||||||
{
|
{
|
||||||
FIXME("\n");
|
FIXME("%s\n", debugstr_w(szShortcutTarget));
|
||||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue