https://bugs.winehq.org/show_bug.cgi?id=47023
--- Comment #5 from ubuntor2000@gmail.com --- On Windows XP (VM):
SHCreateDirectory/SHCreateDirectoryExW with a directory that already exists both return 183 with and without a non-NULL hwnd.
With a path that's too long, SHCreateDirectory/SHCreateDirectoryExW both return 206 (ERROR_FILENAME_EXCED_RANGE) with and without a non-NULL hwnd.
On Wine:
With a path that's too long, SHCreateDirectory/SHCreateDirectoryExW both return 183 with hwnd==NULL and 1223 with hwnd!=NULL.