Author: dquintana
Date: Tue Oct  7 20:23:52 2014
New Revision: 64580

URL: http://svn.reactos.org/svn/reactos?rev=64580&view=rev
Log:
[BROWSEUI]
* Fix opening folder windows on desktop process.

Modified:
    branches/shell-experiments/dll/win32/browseui/shellbrowser.cpp

Modified: branches/shell-experiments/dll/win32/browseui/shellbrowser.cpp
URL: 
http://svn.reactos.org/svn/reactos/branches/shell-experiments/dll/win32/browseui/shellbrowser.cpp?rev=64580&r1=64579&r2=64580&view=diff
==============================================================================
--- branches/shell-experiments/dll/win32/browseui/shellbrowser.cpp      
[iso-8859-1] (original)
+++ branches/shell-experiments/dll/win32/browseui/shellbrowser.cpp      
[iso-8859-1] Tue Oct  7 20:23:52 2014
@@ -3401,7 +3401,8 @@
     BOOL Ret;
 
     // Tell the thread ref we are using it.
-    parameters->offsetF8->AddRef();
+    if (parameters && parameters->offsetF8)
+        parameters->offsetF8->AddRef();
     
     ATLTRY(theCabinet = new CComObject<CShellBrowser>);
     if (theCabinet == NULL)
@@ -3444,7 +3445,8 @@
     theCabinet.Detach();
 
     // Tell the thread ref we are not using it anymore.
-    parameters->offsetF8->Release();
+    if (parameters && parameters->offsetF8)
+        parameters->offsetF8->Release();
 
     return hResult;
 }


Reply via email to