Alexandre Julliard : ntdll:
Simply store the assembly type without interpreting it.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jul 27 07:34:37 CDT 2007
Module: wine
Branch: master
Commit: 8f0fb1e3e9830b49ce851aa3748578a8f8a625d4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8f0fb1e3e9830b49ce851aa3748578a8f8a625d4
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Jul 27 12:17:07 2007 +0200
ntdll: Simply store the assembly type without interpreting it.
---
dlls/ntdll/actctx.c | 21 +++++----------------
1 files changed, 5 insertions(+), 16 deletions(-)
diff --git a/dlls/ntdll/actctx.c b/dlls/ntdll/actctx.c
index e1c20ba..8cf5467 100644
--- a/dlls/ntdll/actctx.c
+++ b/dlls/ntdll/actctx.c
@@ -80,20 +80,14 @@ struct version
USHORT revision;
};
-enum assembly_id_type
-{
- TYPE_NONE,
- TYPE_WIN32
-};
-
struct assembly_identity
{
WCHAR *name;
WCHAR *arch;
WCHAR *public_key;
WCHAR *language;
+ WCHAR *type;
struct version version;
- enum assembly_id_type type;
BOOL optional;
};
@@ -536,7 +530,7 @@ static WCHAR *build_assembly_id( const struct assembly_identity *ai )
static const WCHAR public_keyW[] =
{',','p','u','b','l','i','c','K','e','y','T','o','k','e','n','=',0};
static const WCHAR typeW[] =
- {',','t','y','p','e','=','"','w','i','n','3','2','"',0};
+ {',','t','y','p','e','=',0};
static const WCHAR versionW[] =
{',','v','e','r','s','i','o','n','=',0};
@@ -548,7 +542,7 @@ static WCHAR *build_assembly_id( const struct assembly_identity *ai )
if (ai->name) size += strlenW(ai->name) * sizeof(WCHAR);
if (ai->arch) size += strlenW(archW) + strlenW(ai->arch) + 2;
if (ai->public_key) size += strlenW(public_keyW) + strlenW(ai->public_key) + 2;
- if (ai->type == TYPE_WIN32) size += strlenW(typeW);
+ if (ai->type) size += strlenW(typeW) + strlenW(ai->type) + 2;
size += strlenW(versionW) + strlenW(version) + 2;
if (!(ret = RtlAllocateHeap( GetProcessHeap(), 0, (size + 1) * sizeof(WCHAR) )))
@@ -558,7 +552,7 @@ static WCHAR *build_assembly_id( const struct assembly_identity *ai )
else *ret = 0;
append_string( ret, archW, ai->arch );
append_string( ret, public_keyW, ai->public_key );
- if (ai->type == TYPE_WIN32) strcatW( ret, typeW );
+ append_string( ret, typeW, ai->type );
append_string( ret, versionW, version );
return ret;
}
@@ -835,12 +829,7 @@ static BOOL parse_assembly_identity_elem(xmlbuf_t* xmlbuf, ACTIVATION_CONTEXT* a
}
else if (xmlstr_cmp(&attr_name, TYPE_ATTR))
{
- if (!xmlstr_cmp(&attr_value, "win32"))
- {
- FIXME("wrong type attr %s\n", debugstr_xmlstr(&attr_value));
- return FALSE;
- }
- ai->type = TYPE_WIN32;
+ if (!(ai->type = xmlstrdupW(&attr_value))) return FALSE;
}
else if (xmlstr_cmp(&attr_name, VERSION_ATTR))
{
More information about the wine-cvs
mailing list