[ros-diffs] [hpoussin] 24758: Don't force screensaver file names to have at least 4 chars Terminate the string just after the last read character.
hpoussin at svn.reactos.org
hpoussin at svn.reactos.org
Tue Nov 14 19:35:29 CET 2006
- Previous message: [ros-diffs] [ion] 24757: - Implement HalSystemVectorDispatchEntry, KeFlushWriteBuffer, HalFlushCommonBuffer, HalAllocateCrashDumpRegisters. - Add lots of missing PCI definitions to the DDK, and to the internal file pci.h - Make HAL compilable with the WDK thanks to a nice hack/trick I found.
- Next message: [ros-diffs] [ion] 24759: - Delete HAL cruft files. - Implement (or cleanup + mark as implemented, these are 4 line functions) HalDisplayString, HalAcquireDisplayOwnership, HalSetDisplayParameters, HalQueryDisplayParameters, HalInitailizeProcessor, HalAllProcessorsStarted, HalStartNextProcessor, HalProcessorIdle, HalRequestIpi. - Fix some prototype definitions and cleanup some formatting.
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: hpoussin
Date: Tue Nov 14 21:35:29 2006
New Revision: 24758
URL: http://svn.reactos.org/svn/reactos?rev=24758&view=rev
Log:
Don't force screensaver file names to have at least 4 chars
Terminate the string just after the last read character.
Modified:
trunk/reactos/base/system/winlogon/screensaver.c
Modified: trunk/reactos/base/system/winlogon/screensaver.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/screensaver.c?rev=24758&r1=24757&r2=24758&view=diff
==============================================================================
--- trunk/reactos/base/system/winlogon/screensaver.c (original)
+++ trunk/reactos/base/system/winlogon/screensaver.c Tue Nov 14 21:35:29 2006
@@ -262,7 +262,6 @@
if (rc != ERROR_SUCCESS)
goto cleanup;
- szApplicationName[bufferSize] = 0; /* Terminate the string */
rc = RegQueryValueExW(
hKey,
L"SCRNSAVE.EXE",
@@ -272,9 +271,10 @@
&bufferSize);
if (rc != ERROR_SUCCESS || dwType != REG_SZ)
goto cleanup;
-
- if (bufferSize <=4)
- goto cleanup;
+
+ if (bufferSize == 0)
+ goto cleanup;
+ szApplicationName[bufferSize] = 0; /* Terminate the string */
wsprintfW(szCommandLine, L"%s /s", szApplicationName);
TRACE("WL: Executing %S\n", szCommandLine);
- Previous message: [ros-diffs] [ion] 24757: - Implement HalSystemVectorDispatchEntry, KeFlushWriteBuffer, HalFlushCommonBuffer, HalAllocateCrashDumpRegisters. - Add lots of missing PCI definitions to the DDK, and to the internal file pci.h - Make HAL compilable with the WDK thanks to a nice hack/trick I found.
- Next message: [ros-diffs] [ion] 24759: - Delete HAL cruft files. - Implement (or cleanup + mark as implemented, these are 4 line functions) HalDisplayString, HalAcquireDisplayOwnership, HalSetDisplayParameters, HalQueryDisplayParameters, HalInitailizeProcessor, HalAllProcessorsStarted, HalStartNextProcessor, HalProcessorIdle, HalRequestIpi. - Fix some prototype definitions and cleanup some formatting.
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Ros-diffs
mailing list