X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinstore.c;h=ce5dae61da56070ad8676d309cffd425954e7099;hb=6f6e9db932589470975ecc23261cd57eb9e710be;hp=47fef678cdc126fe77abaca6c3cca2e9ddd6e722;hpb=b99bec3b02d79c6902f50cfa616eebaee43536f6;p=PuTTY.git diff --git a/windows/winstore.c b/windows/winstore.c index 47fef678..ce5dae61 100644 --- a/windows/winstore.c +++ b/windows/winstore.c @@ -749,7 +749,7 @@ static int transform_jumplist_registry /* * Either return or free the result. */ - if (out) + if (out && ret == ERROR_SUCCESS) *out = old_value; else sfree(old_value); @@ -782,7 +782,7 @@ char *get_jumplist_registry_entries (void) { char *list_value; - if (transform_jumplist_registry(NULL,NULL,&list_value) != ERROR_SUCCESS) { + if (transform_jumplist_registry(NULL,NULL,&list_value) != JUMPLISTREG_OK) { list_value = snewn(2, char); *list_value = '\0'; *(list_value + 1) = '\0';