msvc6 compilation fixes
fix buffer over(under?)flow in calc_sep()
Modified: trunk/reactos/subsys/system/calc/winecalc.c
_____
Modified: trunk/reactos/subsys/system/calc/winecalc.c
--- trunk/reactos/subsys/system/calc/winecalc.c 2005-10-18 03:12:49 UTC
(rev 18548)
+++ trunk/reactos/subsys/system/calc/winecalc.c 2005-10-18 04:15:55 UTC
(rev 18549)
@@ -470,7 +470,7 @@
int len;
TCHAR *s;
HGLOBAL hGlobalMemory;
- PSTR pGlobalMemory;
+ LPTSTR pGlobalMemory;
if (!(len = _tcslen(calc.display)))
return 0;
@@ -506,10 +506,10 @@
case TEXT('\x16'): // Ctrl+V Paste
{
TCHAR *s;
- int c;
+ TCHAR c;
int cmd = 0;
- int size = 0;
- int i = 0;
+ size_t size = 0;
+ size_t i = 0;
HGLOBAL hGlobalMemory;
LPTSTR pGlobalMemory;
@@ -3082,7 +3082,7 @@
r[i++] = c;
if (x++ % 3 == 0)
r[i++] = TEXT(',');
- if (n == -1)
+ if (n == 0)
break;
}
Show replies by date