dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/image context.c,1.7,1.8


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/image context.c,1.7,1.8
Date: Sun, 24 Nov 2002 22:05:57 -0500

Update of /cvsroot/dotgnu-pnet/pnet/image
In directory subversions:/tmp/cvs-serv25083/image

Modified Files:
        context.c 
Log Message:


ILContextGetAssembly: if "mscorlib" is not found, then search for
"corlib" instead.


Index: context.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/image/context.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** context.c   27 Nov 2001 00:53:37 -0000      1.7
--- context.c   25 Nov 2002 03:05:55 -0000      1.8
***************
*** 278,282 ****
  ILImage *ILContextGetAssembly(ILContext *context, const char *name)
  {
!       return GetImageByName(context, name, IL_META_TOKEN_ASSEMBLY);
  }
  
--- 278,288 ----
  ILImage *ILContextGetAssembly(ILContext *context, const char *name)
  {
!       ILImage *image = GetImageByName(context, name, IL_META_TOKEN_ASSEMBLY);
!       if(!image && !strcmp(name, "mscorlib"))
!       {
!               /* Handle systems that use "corlib.dll" instead of 
"mscorlib.dll" */
!               image = GetImageByName(context, "corlib", 
IL_META_TOKEN_ASSEMBLY);
!       }
!       return image;
  }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]