RegDeleteTree [5]

Juan Lang juan_lang at
Fri May 18 12:42:26 CDT 2007

Hi Stefan,

+        if (ret) return ret;
+        ret = RegDeleteTreeW(hSubKey, lpszName);
+        if (ret) return ret;

you've followed James's advice, but now you leak hSubKey (when it isn't
hKey) and lpszName (when it isn't szNameBuf.)  A goto would be better.


____________________________________________________________________________________Got a little couch potato? 
Check out fun summer activities for kids. 

More information about the wine-devel mailing list