* Sync with trunk r64401.
[reactos.git] / base / applications / mscutils / servman / servman.c
index 47afa1e..7db7748 100644 (file)
@@ -9,6 +9,8 @@
 
 #include "precomp.h"
 
+#include <winnls.h>
+
 HINSTANCE hInstance;
 HANDLE ProcessHeap;
 
@@ -23,7 +25,17 @@ _tWinMain(HINSTANCE hThisInstance,
     MSG Msg;
     int Ret = 1;
     INITCOMMONCONTROLSEX icex;
+    
+    switch (GetUserDefaultUILanguage())
+  {
+    case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
+      SetProcessDefaultLayout(LAYOUT_RTL);
+      break;
 
+    default:
+      break;
+  }
+    
     hInstance = hThisInstance;
     ProcessHeap = GetProcessHeap();
 
@@ -47,7 +59,7 @@ _tWinMain(HINSTANCE hThisInstance,
             /* pump the message queue */
             while( GetMessage( &Msg, NULL, 0, 0 ) )
             {
-                //if(! IsDialogMessage(hProgDlg, &Msg) )
+                //if ( !hProgDlg || !IsWindow(hProgDlg) || !IsDialogMessage(hProgDlg, &Msg) )
                 //{
                     TranslateMessage(&Msg);
                     DispatchMessage(&Msg);