RegDeleteTree

Detlef Riekenberg wine.dev at web.de
Sun Apr 15 05:05:43 CDT 2007


On So, 2007-04-15 at 10:02 +0200, Stefan Leichter wrote:

I did not test the code, but ...

> +LONG WINAPI RegDeleteTreeW(HKEY hKey, LPCWSTR lpszSubKey)
> +{

> +            if (!ret)
> +               ret = RegSetValueA(hSubKey, NULL, REG_SZ, "", 0); 

Please do not call an ANSI-Function in an UNICODE-Implementation.
http://wiki.winehq.org/CrossCallsWtoA


static const WCHAR emptyW[] = {0};
ret = RegSetValueW(hSubKey, NULL, REG_SZ, emptyW, 0); 

Thanks

-- 
 
By by ... Detlef





More information about the wine-devel mailing list