notepad: change window classname from NPClass to Notepad

Thomas Kho tkho at ucla.edu
Thu Jul 6 17:40:47 CDT 2006


notepad: change window classname from NPClass to Notepad
Win32::GuiTest's "notepad_text.pl" example script looks for a notepad window by
class; this patch changes the window classname to the same as XP's notepad.exe.

Thomas Kho

---

 programs/notepad/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/notepad/main.c b/programs/notepad/main.c
index 3e10aa9..d4ba472 100644
--- a/programs/notepad/main.c
+++ b/programs/notepad/main.c
@@ -370,7 +370,7 @@ int PASCAL WinMain(HINSTANCE hInstance, 
     MSG        msg;
     HACCEL      hAccel;
     WNDCLASSEX class;
-    static const WCHAR className[] = {'N','P','C','l','a','s','s',0};
+    static const WCHAR className[] = {'N','o','t','e','p','a','d',0};
     static const WCHAR winName[]   = {'N','o','t','e','p','a','d',0};
 
     aFINDMSGSTRING = RegisterWindowMessage(FINDMSGSTRING);



More information about the wine-patches mailing list