Diff for /np2/win9x/sstp.cpp between versions 1.4 and 1.8

version 1.4, 2005/03/19 20:46:07 version 1.8, 2011/03/07 09:54:11
Line 1 Line 1
 #include        "compiler.h"  /**
 #include        <commctrl.h>   * @file        sstp.cpp
 #include        "np2.h"   * @brief       Sakura Script Transfer Protocol handler
 #include        "scrnmng.h"   *
 #include        "sstp.h"   * @author      $Author$
    * @date        $Date$
    */
   
   #include "compiler.h"
   #include <winsock.h>
   #include <commctrl.h>
   #include "np2.h"
   #include "scrnmng.h"
   #include "sstp.h"
 #if defined(OSLANG_UTF8) || defined(OSLANG_UCS2)  #if defined(OSLANG_UTF8) || defined(OSLANG_UCS2)
 #include        "oemtext.h"  #include "oemtext.h"
 #endif  #endif
   
   #if !defined(__GNUC__)
   #pragma comment(lib, "wsock32.lib")
   #endif  // !defined(__GNUC__)
   
 static  HWND            sstphwnd = NULL;  static  HWND            sstphwnd = NULL;
 static  int                     sstp_stat = SSTP_READY;  static  int                     sstp_stat = SSTP_READY;
Line 30  static HANDLE check_sakura(void) { Line 42  static HANDLE check_sakura(void) {
   
         HANDLE  hsakura;          HANDLE  hsakura;
   
         hsakura = OpenMutex(MUTEX_ALL_ACCESS, FALSE, OEMTEXT("sakura"));          hsakura = OpenMutex(MUTEX_ALL_ACCESS, FALSE, _T("sakura"));
         if (hsakura != NULL) {          if (hsakura != NULL) {
                 CloseHandle(hsakura);                  CloseHandle(hsakura);
         }          }
Line 105  sstp_senderror:; Line 117  sstp_senderror:;
 void sstp_connect(void) {  void sstp_connect(void) {
   
         if (hSocket != INVALID_SOCKET) {          if (hSocket != INVALID_SOCKET) {
                 send(hSocket, sstpstr, strlen(sstpstr), 0);                  send(hSocket, sstpstr, (int)strlen(sstpstr), 0);
         }          }
 }  }
   
Line 208  BOOL sstp_sendonly(const OEMCHAR *msg) { Line 220  BOOL sstp_sendonly(const OEMCHAR *msg) {
 #else  #else
                                 OEMSPRINTF(msgstr, sendermes, msg);                                  OEMSPRINTF(msgstr, sendermes, msg);
 #endif  #endif
                                 send(lSocket, msgstr, strlen(msgstr), 0);                                  send(lSocket, msgstr, (int)strlen(msgstr), 0);
                                 ret = SUCCESS;                                  ret = SUCCESS;
                         }                          }
                         closesocket(lSocket);                          closesocket(lSocket);

Removed from v.1.4  
changed lines
  Added in v.1.8


RetroPC.NET-CVS <cvs@retropc.net>