Commit 066e3a68 authored by Peter Eisentraut's avatar Peter Eisentraut

Fix locale pointer use in WIN32 code path

Author: David Rowley <david.rowley@2ndquadrant.com>
parent e1480097
...@@ -1490,7 +1490,7 @@ varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid) ...@@ -1490,7 +1490,7 @@ varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid)
errno = 0; errno = 0;
#ifdef HAVE_LOCALE_T #ifdef HAVE_LOCALE_T
if (mylocale) if (mylocale)
result = wcscoll_l((LPWSTR) a1p, (LPWSTR) a2p, mylocale); result = wcscoll_l((LPWSTR) a1p, (LPWSTR) a2p, mylocale->info.lt);
else else
#endif #endif
result = wcscoll((LPWSTR) a1p, (LPWSTR) a2p); result = wcscoll((LPWSTR) a1p, (LPWSTR) a2p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment