[TRANSLATION][CLIPBRD] Italian translation implemented (#344)
[reactos.git] / base / shell / filebrowser / filebrowser.c
index c8a8228..c6da047 100644 (file)
 #include <shobjidl.h>
 #include <shlobj.h>
 #include <shlwapi.h>
-#include <shlwapi_undoc.h>
 #include <stdio.h>
 
-typedef HRESULT (WINAPI *SH_OPEN_NEW_FRAME)(LPITEMIDLIST pidl, IUnknown *paramC, long param10, long param14);
+#include <browseui_undoc.h>
 
 int _tmain(int argc, _TCHAR* argv[])
 {
     EXPLORER_CMDLINE_PARSE_RESULTS parseResults = { 0 };
 
     if (SHExplorerParseCmdLine(&parseResults))
+    {
+        parseResults.dwFlags |= SH_EXPLORER_CMDLINE_FLAG_SEPARATE;
         return SHCreateFromDesktop(&parseResults);
+    }
+
+    if (parseResults.strPath)
+        SHFree(parseResults.strPath);
+
+    if (parseResults.pidlPath)
+        ILFree(parseResults.pidlPath);
+
+    if (parseResults.pidlRoot)
+        ILFree(parseResults.pidlRoot);
 
     return 0;
 }