win32: first start session
authordimbor <i@dimbor.ru>
Fri, 10 Feb 2017 00:26:14 +0000 (03:26 +0300)
committerdimbor <i@dimbor.ru>
Fri, 10 Feb 2017 00:26:14 +0000 (03:26 +0300)
MySession.cpp
WinShare.cpp

index 51fc6d998f4a67e2d6a2173581ff88c61a503f66..b775c3532f2c8f5641515af454593b5c45163337 100644 (file)
@@ -1465,8 +1465,7 @@ MySession::unhideNXWin()
         HWND h = ::GetTopWindow(0);
         while (h) {
             wxString wclass;
-            int r = GetClassName(h, wclass.GetWriteBuf(40), 38);
-            wclass.UngetWriteBuf();
+            int r = GetClassName(h, wxStringBuffer(wclass,40), 38);
             if ((r > 0) && wclass.Contains(wxT("cygwin/xfree86"))) {
                 DWORD pid;
                 GetWindowThreadProcessId(h, &pid);
index a2e12ec1bf99c2aac26de76f59a2f081eb40c4dd..6ff26a22a34f6ea6573d001077a11d39bbe79efb 100644 (file)
@@ -111,6 +111,7 @@ smbc_auth_fn(const char *, const char *, char *, int,
 #else // __UNIX__
 
 // Windows
+#include <windows.h>
 #include <lm.h>
 
 struct share_info_1 {