-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2014-10-09 10:55, schrieb Jonathan Vollebregt:
+static const WCHAR *type_get_wchar(const DWORD type)
This function is not used. You can add it in patch 5, where you actually use it.
+static DWORD wchar_get_type(const WCHAR *type) +{
- static const WCHAR type_dword_le[] = {'R','E','G','_','D','W','O','R','D','_','L','I','T','T','L','E','_','E','N','D','I','A','N',0};
- DWORD i;
- if (lstrcmpiW(type, type_dword_le) == 0)
return REG_DWORD_LITTLE_ENDIAN;
I think a table where you can map two different strings to index 4 is nicer than the special case, unless having the cheap reverse lookup is important for performance.