Author: mnordell Date: Thu Oct 18 12:11:32 2007 New Revision: 29657
URL: http://svn.reactos.org/svn/reactos?rev=29657&view=rev Log: Move variable definition to before first code statement. GCC did not catch this due to its language extensions.
Modified: trunk/reactos/hal/halx86/generic/sysinfo.c
Modified: trunk/reactos/hal/halx86/generic/sysinfo.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/sysinfo.... ============================================================================== --- trunk/reactos/hal/halx86/generic/sysinfo.c (original) +++ trunk/reactos/hal/halx86/generic/sysinfo.c Thu Oct 18 12:11:32 2007 @@ -46,8 +46,8 @@ // us it expected a single byte back. We therefore guess it expects // a BOOLEAN, and we dream up the value TRUE to (we think) tell it // "Sure, the framebuffer is cached". + BOOLEAN ToReturn = TRUE; DPRINT("%s: caller expects %u bytes (should be 1)\n", "HalFrameBufferCachingInformation", BufferSize); - BOOLEAN ToReturn = TRUE; ASSERT(sizeof(BOOLEAN) == 1); *ReturnedLength = sizeof(BOOLEAN); RtlCopyMemory(Buffer, &ToReturn, sizeof(BOOLEAN));