[PATCH v3 08/10] reg: Add wchar/raw data conversion functions

Stefan Dösinger stefandoesinger at gmail.com
Sat Nov 8 08:24:35 CST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

The first 7 patches look worthy of Alexandre's review.

Don't resend this yet, I'd suggest to wait for Alexandre's opinion first.

Am 2014-11-08 11:26, schrieb Jonathan Vollebregt:
> +    static const WCHAR empty = 0;
You could make this on the global scope, call it empty_wchar (or empty_string or something similar) and use it to replace the RegDeleteKeyA with RegDeleteKeyW. That's only a minor style suggestion though, not a requriement.

> +            FIXME("Check for integer overflow.\n");
Print this only if i == UINT_MAX. If i is smaller you know no overflow has happened.

> +            if (0)
> +                return ERROR_ARITHMETIC_OVERFLOW;
> ...
> +        case ERROR_NOT_NUMBER:
> +            reg_message(STRING_NOT_INT_OR_NEG);
> +            return;
> +        case ERROR_ARITHMETIC_OVERFLOW:
> +            reg_message(STRING_ERANGE);
> +            return;
I don't like the dead code. It also seems that native prints the same error message in both cases, so you don't need to separate between underflows, overflows and strings that are not numbers.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJUXiejAAoJEN0/YqbEcdMwWTsP/2HaBgIt6J3EqvC+jpj42MPs
tgHXaZ/lhLxUTtHCcnSzsrVt5zmVN7AOnET54KQFHjbY2OoEcT9PpDDjW/9LVGTc
dj0ciXNpOLuo6MdYWbjmTMtIFVBPMISSYJks2FxvZ1peYa5g+dQQZ6blHWzlcA1k
dLK7UHPeh5kyHACgbr3i0wdL9CNeQ9pafWCUtpnZwxHbXVWlOB1XRZZumKg7snz8
QyLDJylKzYZEJ6CBjU5YxZKl/NXrCoiHplhkF8Tddl8Xmh+AqpWnvMwsWBbiFgXC
ZybdSnHY0vvCojJPb9dYpscbY2uy2Xjap2t8a61xlI288/Tz+8tvnm3qkd99i13w
S9Tf2TGmhHKN1DG/ljnvALRh9JTYH20jFf/lvgZOApew4iyuHWHsLKdjp9LvpwGW
ogIpBHT+kpNPSHuPgbHm9lK/k2OAYBGUZqbH2c0bznQdVWUqEABdR/cMM/wVjYbs
LpUdstKs2oLbhr2gxvLkX0C3f4zdowetYnlnynuL1S+krcAKeQgPxE14MtwKeX49
rYeT931uOvhYi9Dh8a0DU8FTVfI9DKAbRfcBRt81AgJ6zymDC050s2MkELZTyDod
WhPrkpXV/FUOsn2Sef0yxI78XtgbaaGEUIdBz9rThVvJNy4Wrw7zA2MICUhgEQe1
S5rqOajVwtKqqjX0JeJJ
=CJwM
-----END PGP SIGNATURE-----



More information about the wine-devel mailing list