summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_unistr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index a0e1b88eb8..215a58669d 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -181,7 +181,7 @@ uint32 buffer2_to_uint32(BUFFER2 *str)
smb_ucs2_t toupper_w(smb_ucs2_t val)
{
- return upcase_table[val];
+ return upcase_table[SVAL(&val,0)];
}
/*******************************************************************
@@ -190,7 +190,7 @@ smb_ucs2_t toupper_w(smb_ucs2_t val)
smb_ucs2_t tolower_w( smb_ucs2_t val )
{
- return lowcase_table[val];
+ return lowcase_table[SVAL(&val,0)];
}
/*******************************************************************
@@ -198,7 +198,7 @@ determine if a character is lowercase
********************************************************************/
BOOL islower_w(smb_ucs2_t c)
{
- return upcase_table[c] != c;
+ return upcase_table[SVAL(&c,0)] != c;
}
/*******************************************************************
@@ -206,7 +206,7 @@ determine if a character is uppercase
********************************************************************/
BOOL isupper_w(smb_ucs2_t c)
{
- return lowcase_table[c] != c;
+ return lowcase_table[SVAL(&c,0)] != c;
}
@@ -215,7 +215,7 @@ determine if a character is valid in a 8.3 name
********************************************************************/
BOOL isvalid83_w(smb_ucs2_t c)
{
- return valid_table[c] != 0;
+ return valid_table[SVAL(&c,0)] != 0;
}
/*******************************************************************