Ex family of functions so it also works with Windows CE.
Returns NULL, or a pointer that should be freed.
+ XXX - this code is pretty strange, as it used to also
+ work on Win16, where the buffer sizes werent available
+ in advance. It could be simplied now Win16/Win32s is dead!
+ /* original datasize from RegQueryInfo doesn't include the \0 */
dataBuf = malloc((dataSize+1) * sizeof(TCHAR));
+ /* If we have no values, we dont need a ';' */
/* Now append the core path entries -
this will include the NULL