This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada/win32] win32 registry key?


In ada/adaint.c, function __gnat_get_libraries_from_registry,
win32-targeted ada pokes around in the registry looking for this key:

  /* First open the key.  */
  res = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE", 0, KEY_READ,
&reg_key);

  if (res == ERROR_SUCCESS)
    res = RegOpenKeyExA (reg_key, "Ada Core Technologies", 0,
                         KEY_READ, &reg_key);


Shouldn't that be 

   res = RegOpenKeyExA (reg_key, "Free Software Foundation", 0,
                         KEY_READ, &reg_key);

which is where prefix.c looks when gcc is built with
--enable-win32-registry?

Danny


http://shopping.yahoo.com.au - Yahoo! Shopping
- Free CDs for thousands of Priority Shoppers!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]