http://git.etersoft.ru/people/dimbor/packages
/
opennx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa7e391
)
win32: first start session
author
dimbor
<i@dimbor.ru>
Fri, 10 Feb 2017 00:26:14 +0000
(
03:26
+0300)
committer
dimbor
<i@dimbor.ru>
Fri, 10 Feb 2017 00:26:14 +0000
(
03:26
+0300)
MySession.cpp
patch
|
blob
|
blame
|
history
WinShare.cpp
patch
|
blob
|
blame
|
history
diff --git
a/MySession.cpp
b/MySession.cpp
index 51fc6d998f4a67e2d6a2173581ff88c61a503f66..b775c3532f2c8f5641515af454593b5c45163337 100644
(file)
--- a/
MySession.cpp
+++ b/
MySession.cpp
@@
-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);
diff --git
a/WinShare.cpp
b/WinShare.cpp
index a2e12ec1bf99c2aac26de76f59a2f081eb40c4dd..6ff26a22a34f6ea6573d001077a11d39bbe79efb 100644
(file)
--- a/
WinShare.cpp
+++ b/
WinShare.cpp
@@
-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 {