mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
* environ.cc (regopt): Scan HKLM if HKCU scan fails.
This commit is contained in:
parent
6892216822
commit
9e1ab0ca55
@ -1,3 +1,7 @@
|
|||||||
|
Mon May 22 17:11:25 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* environ.cc (regopt): Scan HKLM if HKCU scan fails.
|
||||||
|
|
||||||
Mon May 16 23:39:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
Mon May 16 23:39:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* dir.cc (rmdir): Care for misleading error messages
|
* dir.cc (rmdir): Care for misleading error messages
|
||||||
|
@ -433,6 +433,12 @@ regopt (const char *name)
|
|||||||
MALLOC_CHECK;
|
MALLOC_CHECK;
|
||||||
if (r.get_string (lname, buf, sizeof (buf) - 1, "") == ERROR_SUCCESS)
|
if (r.get_string (lname, buf, sizeof (buf) - 1, "") == ERROR_SUCCESS)
|
||||||
parse_options (buf);
|
parse_options (buf);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
reg_key r1 (HKEY_LOCAL_MACHINE, KEY_READ, CYGWIN_INFO_PROGRAM_OPTIONS_NAME, NULL);
|
||||||
|
if (r1.get_string (lname, buf, sizeof (buf) - 1, "") == ERROR_SUCCESS)
|
||||||
|
parse_options (buf);
|
||||||
|
}
|
||||||
MALLOC_CHECK;
|
MALLOC_CHECK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user