Author: cwittich
Date: Fri Jan 25 21:19:41 2008
New Revision: 32003
URL:
http://svn.reactos.org/svn/reactos?rev=32003&view=rev
Log:
fix warnings
Modified:
trunk/reactos/base/applications/mscutils/servman/misc.c
Modified: trunk/reactos/base/applications/mscutils/servman/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/misc.c (original)
+++ trunk/reactos/base/applications/mscutils/servman/misc.c Fri Jan 25 21:19:41 2008
@@ -126,7 +126,7 @@
lpFormat,
0,
0,
- (LPTSTR)&lpStr,
+ (VOID*)&lpStr,
0,
&lArgs);
va_end(lArgs);
@@ -189,10 +189,9 @@
return len;
}
-
VOID GetError(VOID)
{
- LPVOID lpMsgBuf;
+ LPTSTR lpMsgBuf = NULL;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
@@ -200,11 +199,11 @@
NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
- (LPTSTR) &lpMsgBuf,
+ (VOID*)&lpMsgBuf,
0,
NULL );
- MessageBox(NULL, (LPCTSTR) lpMsgBuf, _T("Error!"), MB_OK | MB_ICONERROR);
+ MessageBox(NULL, lpMsgBuf, _T("Error!"), MB_OK | MB_ICONERROR);
LocalFree(lpMsgBuf);
}