X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/a54d0c36f94da67c3e35bd7a3648c8eb9e4411e8..5462f4596108c4309fb69b4e57aa1e59d7100908:/windows/winx11.c diff --git a/windows/winx11.c b/windows/winx11.c index c1204ae1..b8c7fa7d 100644 --- a/windows/winx11.c +++ b/windows/winx11.c @@ -9,10 +9,11 @@ #include "putty.h" #include "ssh.h" -void platform_get_x11_auth(struct X11Display *disp, const Config *cfg) +void platform_get_x11_auth(struct X11Display *disp, Conf *conf) { - if (cfg->xauthfile.path[0]) - x11_get_auth_from_authfile(disp, cfg->xauthfile.path); + char *xauthpath = conf_get_filename(conf, CONF_xauthfile)->path; + if (xauthpath[0]) + x11_get_auth_from_authfile(disp, xauthpath); } const int platform_uses_x11_unix_by_default = FALSE;