[ros-diffs] [gedmurphy] 30276: add __REACTOS__ specific code to get around the fact that janderwald isn't working hard enough on shell32 ; )

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Thu Nov 8 17:47:28 CET 2007


Author: gedmurphy
Date: Thu Nov  8 19:47:28 2007
New Revision: 30276

URL: http://svn.reactos.org/svn/reactos?rev=30276&view=rev
Log:
add __REACTOS__ specific code to get around the fact that janderwald isn't working hard enough on shell32 ;)

Modified:
    trunk/reactos/base/applications/mstsc/connectdialog.c
    trunk/reactos/base/applications/mstsc/settings.c

Modified: trunk/reactos/base/applications/mstsc/connectdialog.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/connectdialog.c?rev=30276&r1=30275&r2=30276&view=diff
==============================================================================
--- trunk/reactos/base/applications/mstsc/connectdialog.c (original)
+++ trunk/reactos/base/applications/mstsc/connectdialog.c Thu Nov  8 19:47:28 2007
@@ -225,6 +225,7 @@
                     break;
 
                 case IDC_SAVE:
+                    SaveAllSettings(pInfo);
                     SaveRdpSettingsToFile(NULL, pInfo->pRdpSettings);
                 break;
             }

Modified: trunk/reactos/base/applications/mstsc/settings.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/settings.c?rev=30276&r1=30275&r2=30276&view=diff
==============================================================================
--- trunk/reactos/base/applications/mstsc/settings.c (original)
+++ trunk/reactos/base/applications/mstsc/settings.c Thu Nov  8 19:47:28 2007
@@ -372,8 +372,8 @@
                             bWrite ? GENERIC_WRITE : GENERIC_READ,
                             0,
                             NULL,
-                            bWrite ? CREATE_ALWAYS : OPEN_EXISTING,
-                            FILE_ATTRIBUTE_NORMAL,
+                            bWrite ? OPEN_EXISTING: CREATE_ALWAYS,
+                            FILE_ATTRIBUTE_NORMAL | FILE_ATTRIBUTE_HIDDEN,
                             NULL);
     }
 
@@ -400,6 +400,7 @@
     /* use default file */
     if (lpFile == NULL)
     {
+#ifndef __REACTOS__
         HRESULT hr;
         LPITEMIDLIST lpidl= NULL;
 
@@ -417,6 +418,10 @@
                 CoTaskMemFree(lpidl);
             }
         }
+#else
+        wcscpy(pszPath, L"C:\\Default.rdp");
+        lpFile = pszPath;
+#endif
     }
 
     if (lpFile)
@@ -447,6 +452,7 @@
     /* use default file */
     if (lpFile == NULL)
     {
+#ifndef __REACTOS__
         HRESULT hr;
         LPITEMIDLIST lpidl= NULL;
 
@@ -464,6 +470,10 @@
                 CoTaskMemFree(lpidl);
             }
         }
+#else
+        wcscpy(pszPath, L"C:\\Default.rdp");
+        lpFile = pszPath;
+#endif
     }
 
     if (lpFile)




More information about the Ros-diffs mailing list