Author: mbosma
Date: Sat May 12 17:17:01 2007
New Revision: 26721
URL: http://svn.reactos.org/svn/reactos?rev=26721&view=rev
Log:
Deactivate a check.
Modified:
trunk/reactos/dll/directx/ddraw/main/ddraw_main.c
Modified: trunk/reactos/dll/directx/ddraw/main/ddraw_main.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/main/ddr…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/main/ddraw_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/main/ddraw_main.c Sat May 12 17:17:01 2007
@@ -333,13 +333,14 @@
HWND window;
LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT)iface;
-
+#if 0 // this check is totally invalid if you ask me - mbosma
/* Get the old window */
window = (HWND) This->lpLcl->hWnd;
if(!window)
{
return DDERR_NOHWND;
}
+#endif
/* Tests suggest that we need one of them: */
if(!(cooplevel & (DDSCL_SETFOCUSWINDOW |
Author: fireball
Date: Sat May 12 12:44:49 2007
New Revision: 26717
URL: http://svn.reactos.org/svn/reactos?rev=26717&view=rev
Log:
Undo last change, since it's an index in an array of TCHARs, so "1" is correct.
Modified:
trunk/reactos/base/applications/regedit/security.c
Modified: trunk/reactos/base/applications/regedit/security.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/security.c (original)
+++ trunk/reactos/base/applications/regedit/security.c Sat May 12 12:44:49 2007
@@ -763,7 +763,7 @@
obj = (PCRegKeySecurity)HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
FIELD_OFFSET(CRegKeySecurity,
- szRegKey[_tcslen(lpRegKey) + sizeof(TCHAR)]));
+ szRegKey[_tcslen(lpRegKey) + 1]));
if (obj != NULL)
{
obj->ref = 1;
Author: greatlrd
Date: Sat May 12 12:27:00 2007
New Revision: 26715
URL: http://svn.reactos.org/svn/reactos?rev=26715&view=rev
Log:
did see a small mistake use sizeof(TCHAR) for adding NULL termeting of string for u do not known if we switch compile regedit as unicode-16 or ANSI.
Modified:
trunk/reactos/base/applications/regedit/security.c
Modified: trunk/reactos/base/applications/regedit/security.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/security.c (original)
+++ trunk/reactos/base/applications/regedit/security.c Sat May 12 12:27:00 2007
@@ -763,7 +763,7 @@
obj = (PCRegKeySecurity)HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
FIELD_OFFSET(CRegKeySecurity,
- szRegKey[_tcslen(lpRegKey)+1]));
+ szRegKey[_tcslen(lpRegKey) + sizeof(TCHAR)]));
if (obj != NULL)
{
obj->ref = 1;