https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a5a725ae5745c89ce9e7591c69e0714e648a9830

commit a5a725ae5745c89ce9e7591c69e0714e648a9830
Author:     Jared Smudde <[email protected]>
AuthorDate: Wed Apr 1 04:42:24 2020 -0500
Commit:     GitHub <[email protected]>
CommitDate: Wed Apr 1 11:42:24 2020 +0200

    [STOBJECT] Change eject hardware dialog buttons from OK/Cancel to just OK. 
(#2493)
    
    It's just an information dialog that needs one button, it's not actually 
doing different actions based on user input.
---
 dll/shellext/stobject/hotplug.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dll/shellext/stobject/hotplug.cpp 
b/dll/shellext/stobject/hotplug.cpp
index a57976a9c89..a8968818236 100644
--- a/dll/shellext/stobject/hotplug.cpp
+++ b/dll/shellext/stobject/hotplug.cpp
@@ -200,11 +200,11 @@ static void _ShowContextMenu(CSysTray * pSysTray)
         {
             WCHAR strInfo[128];
             swprintf(strInfo, L"Problem Ejecting %wS", g_strMenuSel);
-            MessageBox(0, L"The device cannot be stopped right now! Try 
stopping it again later!", strInfo, MB_OKCANCEL | MB_ICONEXCLAMATION);
+            MessageBox(0, L"The device cannot be stopped right now! Try 
stopping it again later!", strInfo, MB_OK | MB_ICONEXCLAMATION);
         }
         else
         {
-            //MessageBox(0, L"Device ejected successfully!! You can safely 
remove the device now!", L"Safely Remove Hardware", MB_OKCANCEL | 
MB_ICONINFORMATION);
+            //MessageBox(0, L"Device ejected successfully!! You can safely 
remove the device now!", L"Safely Remove Hardware", MB_OK | MB_ICONINFORMATION);
             g_IsRemoving = TRUE;
             g_devList.RemoveAt(id); /* thing is.. even after removing id at 
this point, the devnode_change occurs after some seconds of sucessful removal
                                        and since pendrive is still plugged in 
it gets enumerated, if problem number is not filtered.

Reply via email to