minor changes (mostly formatting) Modified: trunk/reactos/lib/hid/hid.c Modified: trunk/reactos/lib/shellext/slayer/slayer.c _____
Modified: trunk/reactos/lib/hid/hid.c --- trunk/reactos/lib/hid/hid.c 2005-10-02 12:27:54 UTC (rev 18212) +++ trunk/reactos/lib/hid/hid.c 2005-10-02 12:46:49 UTC (rev 18213) @@ -368,8 +368,8 @@
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) { _____
Modified: trunk/reactos/lib/shellext/slayer/slayer.c --- trunk/reactos/lib/shellext/slayer/slayer.c 2005-10-02 12:27:54 UTC (rev 18212) +++ trunk/reactos/lib/shellext/slayer/slayer.c 2005-10-02 12:46:49 UTC (rev 18213) @@ -28,7 +28,7 @@
#include <precomp.h>
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 @@ 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; }