Author: tkreuzer
Date: Thu Oct 18 13:44:58 2007
New Revision: 29660
URL: http://svn.reactos.org/svn/reactos?rev=29660&view=rev
Log:
revert my useless hack.
Modified:
trunk/reactos/base/shell/cmd/cmd.c
Modified: trunk/reactos/base/shell/cmd/cmd.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/cmd.c?rev=2…
==============================================================================
--- trunk/reactos/base/shell/cmd/cmd.c (original)
+++ trunk/reactos/base/shell/cmd/cmd.c Thu Oct 18 13:44:58 2007
@@ -1603,53 +1603,6 @@
}
#endif
-void
-InitTitle()
-{
- STARTUPINFOW StartupInfo;
- LPWSTR lpFileName;
- WCHAR szTitle[MAX_PATH+1];
-
- GetStartupInfoW(&StartupInfo);
-
- if (StartupInfo.lpTitle)
- {
- /* Are we started from a shortcut? */
- if (StartupInfo.dwFlags & 0x800)
- {
- UINT len;
-
- /* We are started from a shortcut, use the file name only */
- lpFileName = wcsrchr(StartupInfo.lpTitle, '\\');
- if (lpFileName == NULL)
- {
- lpFileName = StartupInfo.lpTitle;
- }
-
- /* Drop file extension, we simply assume 3 chars extension */
- len = wcslen(lpFileName) - 4;
- if (len > 0)
- {
- len = min(len, MAX_PATH);
- wcsncpy(szTitle, lpFileName, len);
- szTitle[len] = 0;
- SetConsoleTitleW(szTitle);
- return;
- }
- }
-
- /* Use lpTitle member of STARTUPINFO */
- SetConsoleTitleW(StartupInfo.lpTitle);
- return;
- }
-
- /* Set executable path as window title */
- GetModuleFileNameW(NULL, szTitle, MAX_PATH);
- SetConsoleTitleW(szTitle);
- return;
-}
-
-
/*
* set up global initializations and process parameters
*
@@ -1672,11 +1625,6 @@
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx (&osvi);
- /* FIXME: Doesn't work in ros yet, because of missing functionality of ShellExecute.
- See bug 2743. Please unif as soon as it get's fixed. */
-#if 0
- InitTitle();
-#endif
/* Some people like to run ReactOS cmd.exe on Win98, it helps in the
* build process. So don't link implicitly against ntdll.dll, load it
* dynamically instead */
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));