advapi32: Avoid name clash between variable and macro
Andrew Talbot
Andrew.Talbot at talbotville.com
Fri Apr 6 10:23:58 CDT 2007
Changelog:
advapi32: Avoid name clash between variable and macro.
diff -urN a/dlls/advapi32/crypt_lmhash.c b/dlls/advapi32/crypt_lmhash.c
--- a/dlls/advapi32/crypt_lmhash.c 2007-03-05 17:38:11.000000000 +0000
+++ b/dlls/advapi32/crypt_lmhash.c 2007-04-06 12:11:26.000000000 +0100
@@ -36,12 +36,12 @@
static void CRYPT_LMhash( unsigned char *dst, const unsigned char *pwd, const int len )
{
- int i, max = 14;
+ int i, len_max = 14;
unsigned char tmp_pwd[14] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
- max = len > max ? max : len;
+ len_max = len > len_max ? len_max : len;
- for (i = 0; i < max; i++)
+ for (i = 0; i < len_max; i++)
tmp_pwd[i] = pwd[i];
CRYPT_DEShash( dst, tmp_pwd, CRYPT_LMhash_Magic );
More information about the wine-patches
mailing list