fix: #30 Don't open window when there's no camera
This commit is contained in:
@@ -25,6 +25,7 @@ enum IOType
|
||||
|
||||
typedef struct _CONTEXT_OBJECT
|
||||
{
|
||||
CString sClientInfo[10];
|
||||
SOCKET sClientSocket;
|
||||
WSABUF wsaInBuf;
|
||||
WSABUF wsaOutBuffer;
|
||||
@@ -46,6 +47,12 @@ typedef struct _CONTEXT_OBJECT
|
||||
memset(&wsaOutBuffer,0,sizeof(WSABUF));
|
||||
olps = NULL;
|
||||
}
|
||||
VOID SetClientInfo(CString s[10]){
|
||||
for (int i=0; i<sizeof(sClientInfo)/sizeof(CString);i++)
|
||||
{
|
||||
sClientInfo[i] = s[i];
|
||||
}
|
||||
}
|
||||
}CONTEXT_OBJECT,*PCONTEXT_OBJECT;
|
||||
|
||||
typedef CList<PCONTEXT_OBJECT> ContextObjectList;
|
||||
|
||||
Reference in New Issue
Block a user