title: RegSetValueEx Only shows writes first character
body: <p>In the following code, RegSetValueEx is only writing the first letter of my string.  I've tried changing the sizes to just about anything I can think of, and I only ever get the first string.  Any help is appreciated.</p>
  
  <pre><code>LPCWSTR path = L"Test String";
  size_t size = wclsen(path) * sizeof(wchar_t);
  
  DWORD dwResult = RegSetValueEx(HKEY_LOCAL_MACHINE,
                              "SOFTWARE\\My App",
                              0,
                              REG_SZ,
                              (LPBYTE)path,
                              test);
  </code></pre>
  
  <p>I've tried using path.size() * sizeof(wchar_t) and any number of other sizes I could think of, but nothing seems to work right.  Any ideas?</p>