Hi,
I saw the 1/2 patch has been commited, this is the second half that corresponds to the commit 1 of 4 by jnvsor in a preliminary work to add reg query functionality:
https://github.com/jnvsor/wine/commits/reg.exe
I split this commit in two after the review from Stefan Dösinger.
I did not want to submit all at once because it seems pretty hard to get patches accepted.
M.
Subject: Re: [PATCH 2/2] reg: merge key open code To: wine-patches@winehq.org From: stefandoesinger@gmail.com Date: Mon, 5 Oct 2015 11:43:52 +0200
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Am 2015-10-04 um 21:14 schrieb Michel Zou:
From: Jonathan Vollebregt jnvsor@gmail.com
Signed-off-by: Michel Zou xantares09@hotmail.com
Signed-off-by: Stefan Dösinger stefan@codeweavers.com
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2
iQIcBAEBCAAGBQJWEkZYAAoJEN0/YqbEcdMwHoIP/RbWUWDNwqoDGiEY/b+IX+Ik JuOwKGS/VJ36CrAUE03qgJ4XOBzIvfKMO+5UmjztQLPh60bvzKozzTVFJlYlCExQ jzuOyz24P+7QBx195Ov9YV56p7isk2g2ShL9zg/XVub4b/47snRzncmjC7kAM2my Zxfhcg5wxqHE3+905LXf4VcL9a1vbZG5+sIjMCfB5q6/b0EtyDBomIuH3YRgGuHu iH57nTjUu+bMD+lH5PvmD0mAhMFEwSjbdXCsSqQhyDUg7WQaYo/XE17XtA2N4gb1 tHl66PPdazaKxJGrTBdJtHhtgA8LO2ahfa7Ses5x3z6+/oGlO1OsdPPNRJusUC4V 93tcacPj7IpWSLknZDFPHfcaHhv0IBMkI64lqiB9uEjQmylFd9+N1hYbnuB9ddpB 21W4JE+Yfk7XDK0N4LDfKOGOblS7id58FoOJVIOGbYwklD9LXRGwiRkQe5yPGu6u oAG0eWGySkU1egL6eXQ1fTzmF2RDzx3nFUUDB86kjeHa6mbeYzCtZEDzDaGOJkdI 3J61hbUhY6VMMoSFsyokYwK++DJMvxhjk6Dy8cnU/qXM5MsDQWJUHePA9FZYOaOy BBTcNUt1x2zNZjrsoCpdwHWGCpnht199cH+GElTIXp/CIaolxvEgl8TmyW6v5M42 KfJ1DoYOZjEcs/gVwPDA =Go1E -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Am 2015-10-08 um 10:14 schrieb Michel Zou:
I saw the 1/2 patch has been commited, this is the second half that corresponds to the commit 1 of 4 by jnvsor in a preliminary work to add reg query functionality: https://github.com/jnvsor/wine/commits/reg.exe I split this commit in two after the review from Stefan Dösinger. I did not want to submit all at once because it seems pretty hard to get patches accepted.
I'd say prepare the other patches as well and re-submit this one together with the changes that need the code refactoring. The reg_open_path change should probably go along with Clean up reg_add (same submission to wine-patches, but a separate patch).
reg: Add wchar/raw data conversion functions adds functionality, but it can be split a bit. Afaics a split like this would make sense. As far as I can see all of those steps should fix some todo_wines, so they'll make sense on their own.
1) Improve REG_DWORD. Though why again do you need the manual 0 / 0x / 0X detection? It seems that strtolW should be able to do that as well. (Jonathan explained it to me once, but I forgot).
2) Add REG_DWORD_BIG_ENDIAN. One liner, plus remove todo_wines
3) Handle empty input
4) Add REG_MULTI_SZ
5) Add REG_BINARY
6) Constify the parameters. While doing so you can also change "LPCRAP" to "CRAP *"
reg doesn't support octal input and treats it as decimal (Except on XP and maybe 2k)
On 10/08/2015 03:11 PM, Stefan Dösinger wrote:
- Improve REG_DWORD. Though why again do you need the manual 0 / 0x /
0X detection? It seems that strtolW should be able to do that as well. (Jonathan explained it to me once, but I forgot).