It looks like you are trying to combine two LPCWSTR
that represent path elements in combined paths. If in this case you want to use the PathCombine method
LPCWSTR root = ...; LPCWSTR name = ...; WCHAR combined[MAX_PATH]; if (PathCombineW(combined, root, name) != NULL) {
source share