mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* w32reg.c (read_w32_registry_string): Fixed expanding of the
environment buffer; didn't worked at all. Reported by Thijmen Klok.
This commit is contained in:
parent
4884931476
commit
4be5257f2c
2 changed files with 7 additions and 0 deletions
|
@ -103,6 +103,7 @@ read_w32_registry_string( const char *root, const char *dir, const char *name )
|
|||
nbytes = ExpandEnvironmentStrings (result, tmp, n1);
|
||||
if (nbytes && nbytes > n1) {
|
||||
free (tmp);
|
||||
n1 = nbytes;
|
||||
tmp = malloc (n1 + 1);
|
||||
if (!tmp)
|
||||
goto leave;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue