minor changes (mostly formatting)

svn path=/trunk/; revision=18213
This commit is contained in:
Thomas Bluemel 2005-10-02 12:46:49 +00:00
parent 4ca189ac66
commit 0e10526c80
2 changed files with 6 additions and 6 deletions

View file

@ -368,8 +368,8 @@ ULONG DDKAPI
HidD_Hello(OUT PCHAR Buffer, HidD_Hello(OUT PCHAR Buffer,
IN ULONG BufferLength) IN ULONG BufferLength)
{ {
const PCHAR HelloString = "Hello\n"; const CHAR HelloString[] = "Hello\n";
ULONG StrSize = (lstrlenA(HelloString) + 1) * sizeof(CHAR); ULONG StrSize = sizeof(HelloString) + sizeof(HelloString[0]);
if(BufferLength > 0) if(BufferLength > 0)
{ {

View file

@ -28,7 +28,7 @@
#include <precomp.h> #include <precomp.h>
HINSTANCE hInstance = NULL; HINSTANCE hInstance = NULL;
LONG dllrefs = 0; static LONG dllrefs = 0;
/* FIXME - they should be exported somewhere instead of defined here... */ /* FIXME - they should be exported somewhere instead of defined here... */
DEFINE_GUID(IID_IClassFactory, 0x00000001, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); DEFINE_GUID(IID_IClassFactory, 0x00000001, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
@ -1051,9 +1051,9 @@ DllRegisterServer(VOID)
TCHAR szModule[MAX_PATH + 1]; TCHAR szModule[MAX_PATH + 1];
int lnszDescription; int lnszDescription;
if(!GetModuleFileName(hInstance, if (!GetModuleFileName(hInstance,
szModule, szModule,
sizeof(szModule) / sizeof(szModule[0]))) sizeof(szModule) / sizeof(szModule[0])))
{ {
return E_ACCESSDENIED; return E_ACCESSDENIED;
} }