|
33 | 33 | #include "Common/SubsystemInterface.h" |
34 | 34 | #include "Common/STLTypedefs.h" |
35 | 35 | #include "Common/AsciiString.h" |
36 | | -#include "Common/SystemInfo.h" |
37 | 36 | #include "Common/UnicodeString.h" |
38 | 37 | #include "GameClient/GameText.h" |
39 | 38 |
|
@@ -100,23 +99,7 @@ OSDisplayButtonType OSDisplayWarningBox(AsciiString p, AsciiString m, UnsignedIn |
100 | 99 |
|
101 | 100 | // @todo Make this return more than just ok/cancel - jkmcd |
102 | 101 | // (we need a function to translate back the other way.) |
103 | | - Int returnResult = 0; |
104 | | - if (TheSystemIsUnicode) |
105 | | - { |
106 | | - returnResult = ::MessageBoxW(nullptr, mesgStr.str(), promptStr.str(), windowsOptionsFlags); |
107 | | - } |
108 | | - else |
109 | | - { |
110 | | - // However, if we're using the default version of the message box, we need to |
111 | | - // translate the string into an AsciiString |
112 | | - AsciiString promptA, mesgA; |
113 | | - promptA.translate(promptStr); |
114 | | - mesgA.translate(mesgStr); |
115 | | - //Make sure main window is not TOP_MOST |
116 | | - ::SetWindowPos(ApplicationHWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); |
117 | | - returnResult = ::MessageBoxA(nullptr, mesgA.str(), promptA.str(), windowsOptionsFlags); |
118 | | - } |
119 | | - |
| 102 | + const Int returnResult = ::MessageBoxW(nullptr, mesgStr.str(), promptStr.str(), windowsOptionsFlags); |
120 | 103 | if (returnResult == IDOK) { |
121 | 104 | return OSDBT_OK; |
122 | 105 | } |
|
0 commit comments