Le mer 06/08/2003 à 23:10, Alexandre Julliard a écrit :
> ChangeSet ID: 8934
> CVSROOT:      /home/winehq/opt/cvs-commit
> Module name:  wine
> Changes by:   [EMAIL PROTECTED]       2003/08/06 22:10:13
> 
> Modified files:
>       programs/regedit: regproc.h regproc.c regedit.c Makefile.in 
>                         .cvsignore 
> Added files:
>       programs/regedit: treeview.c rsrc.rc resource.rc resource.h 
>                         main.h main.c listview.c framewnd.c childwnd.c 
>                         about.c En.rc 
> 
> Log message:
>       Robert Dickenson <[EMAIL PROTECTED]>
>       Steven Edwards <[EMAIL PROTECTED]>
>       Mike McCormack <[EMAIL PROTECTED]>
>       Implemented GUI for regedit.
> 
> Patch: http://cvs.winehq.com/patch.py?root=/home/winehq/opt/cvs-commit&id=8934

regedit.c:
@@ -153,10 +154,13 @@
     }
 
     if (action == ACTION_UNDEF)
-    {
-        action = ACTION_ADD;
+        return FALSE;
+
+    return PerformRegAction(action, s);
     }


This seems to have broken commandline only regedit, for the ACTION_ADD
case (used in wineinstall et al.).

The included patch should fix it (building in progress).

Vincent
Index: wine/programs/regedit/regedit.c
===================================================================
RCS file: /home/wine/wine/programs/regedit/regedit.c,v
retrieving revision 1.6
diff -u -r1.6 regedit.c
--- wine/programs/regedit/regedit.c	7 Aug 2003 03:10:13 -0000	1.6
+++ wine/programs/regedit/regedit.c	14 Aug 2003 01:01:38 -0000
@@ -153,6 +153,9 @@
         }
     }
 
+    if (*s && action == ACTION_UNDEF)
+        action = ACTION_ADD;
+
     if (action == ACTION_UNDEF)
         return FALSE;
 

Reply via email to