Author: tkreuzer
Date: Sun Dec 26 14:54:57 2010
New Revision: 50147
URL: http://svn.reactos.org/svn/reactos?rev=50147&view=rev
Log:
[VGA_NEW]
Use strlen() istead of sizeof() to get the string length from a pointer. CID 10403.
Modified:
trunk/reactos/drivers/video/miniport/vga_new/vbe.c
Modified: trunk/reactos/drivers/video/miniport/vga_new/vbe.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/miniport/vga…
==============================================================================
--- trunk/reactos/drivers/video/miniport/vga_new/vbe.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/miniport/vga_new/vbe.c [iso-8859-1] Sun Dec 26 14:54:57 2010
@@ -47,7 +47,7 @@
VideoPortDebugPrint(0, "Vendor: %s Product: %s Revision: %s (%lx)\n", Vendor, Product, Revision, OemRevision);
for (i = 0; i < (sizeof(BrokenVesaBiosList) / sizeof(PCHAR)); i++)
{
- if (!strncmp(Product, BrokenVesaBiosList[i], sizeof(BrokenVesaBiosList[i]))) return FALSE;
+ if (!strncmp(Product, BrokenVesaBiosList[i], strlen(BrokenVesaBiosList[i]))) return FALSE;
}
/* For Brookdale-G (Intel), special hack used */
Author: jimtabor
Date: Sun Dec 26 11:11:27 2010
New Revision: 50141
URL: http://svn.reactos.org/svn/reactos?rev=50141&view=rev
Log:
[Win32k]
- Fixes bug 5792 and Get/PeekMessage tests. I noticed co_IntPostOrSendMessage to co_IntSendMessageNoWait changes when it should have been changed to co_IntSendMessage. Same as co_IntSendMessage to co_IntSendMessageNoWait when it should have not changed.... I'm sorting it out. ATM win test locks up and the system shutdown box is not present only the text message.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] Sun Dec 26 11:11:27 2010
@@ -708,22 +708,20 @@
PDESKTOP Desktop = IntGetActiveDesktop();
HWND* HwndList;
- static UINT MsgType = 0;
-
- if (!MsgType)
+ if (!gpsi->uiShellMsg)
{
/* Too bad, this doesn't work.*/
#if 0
UNICODE_STRING Str;
RtlInitUnicodeString(&Str, L"SHELLHOOK");
- MsgType = UserRegisterWindowMessage(&Str);
+ gpsi->uiShellMsg = UserRegisterWindowMessage(&Str);
#endif
- MsgType = IntAddAtom(L"SHELLHOOK");
-
- DPRINT("MsgType = %x\n", MsgType);
- if (!MsgType)
+ gpsi->uiShellMsg = IntAddAtom(L"SHELLHOOK");
+
+ DPRINT("MsgType = %x\n", gpsi->uiShellMsg);
+ if (!gpsi->uiShellMsg)
DPRINT1("LastError: %x\n", EngGetLastError());
}
@@ -740,7 +738,7 @@
for (; *cursor; cursor++)
{
- co_IntSendMessageNoWait(*cursor, MsgType, Message, lParam);
+ UserPostMessage(*cursor, gpsi->uiShellMsg, Message, lParam);
}
ExFreePool(HwndList);