Fix locale pointer use in WIN32 code path

Author: David Rowley <david.rowley@2ndquadrant.com>
This commit is contained in:
Peter Eisentraut 2017-03-25 00:38:12 -04:00
parent e148009740
commit 066e3a68ae

View File

@ -1490,7 +1490,7 @@ varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid)
errno = 0;
#ifdef HAVE_LOCALE_T
if (mylocale)
result = wcscoll_l((LPWSTR) a1p, (LPWSTR) a2p, mylocale);
result = wcscoll_l((LPWSTR) a1p, (LPWSTR) a2p, mylocale->info.lt);
else
#endif
result = wcscoll((LPWSTR) a1p, (LPWSTR) a2p);