fix: #30 Don't open window when there's no camera

This commit is contained in:
yuanyuanxiang
2025-01-14 23:47:43 +08:00
parent 816385e9c8
commit 0989cae803
2 changed files with 13 additions and 2 deletions

View File

@@ -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;