From 0e10526c8047b32186cf5cbc6fbcd6d7884a5905 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 2 Oct 2005 12:46:49 +0000 Subject: [PATCH] minor changes (mostly formatting) svn path=/trunk/; revision=18213 --- reactos/lib/hid/hid.c | 4 ++-- reactos/lib/shellext/slayer/slayer.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/lib/hid/hid.c b/reactos/lib/hid/hid.c index ac5ffbb3220..e9bee0a68cb 100644 --- a/reactos/lib/hid/hid.c +++ b/reactos/lib/hid/hid.c @@ -368,8 +368,8 @@ ULONG DDKAPI HidD_Hello(OUT PCHAR Buffer, IN ULONG BufferLength) { - const PCHAR HelloString = "Hello\n"; - ULONG StrSize = (lstrlenA(HelloString) + 1) * sizeof(CHAR); + const CHAR HelloString[] = "Hello\n"; + ULONG StrSize = sizeof(HelloString) + sizeof(HelloString[0]); if(BufferLength > 0) { diff --git a/reactos/lib/shellext/slayer/slayer.c b/reactos/lib/shellext/slayer/slayer.c index 2cc7c4e2126..10854421233 100644 --- a/reactos/lib/shellext/slayer/slayer.c +++ b/reactos/lib/shellext/slayer/slayer.c @@ -28,7 +28,7 @@ #include HINSTANCE hInstance = NULL; -LONG dllrefs = 0; +static LONG dllrefs = 0; /* 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); @@ -1051,9 +1051,9 @@ DllRegisterServer(VOID) TCHAR szModule[MAX_PATH + 1]; int lnszDescription; - if(!GetModuleFileName(hInstance, - szModule, - sizeof(szModule) / sizeof(szModule[0]))) + if (!GetModuleFileName(hInstance, + szModule, + sizeof(szModule) / sizeof(szModule[0]))) { return E_ACCESSDENIED; }