Author: mbosma
Date: Sat May 12 19:45:54 2007
New Revision: 26726
URL: http://svn.reactos.org/svn/reactos?rev=26726&view=rev
Log:
Fix warning.
Modified:
trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
Modified: trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Ddraw/dd…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c Sat May 12 19:45:54 2007
@@ -133,9 +133,9 @@
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 0 // this check is totally invalid if you ask me - mbosma
if(!window)
{
return DDERR_NOHWND;
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;