зеркало из https://github.com/mozilla/pjs.git
Bugzilla bug #14260: assert that NSPR's WSAStartup call succeeded.
This commit is contained in:
Родитель
e0852b8b25
Коммит
c441d17b5b
|
@ -43,8 +43,10 @@ _PR_MD_INIT_IO()
|
||||||
{
|
{
|
||||||
WORD WSAVersion = 0x0101;
|
WORD WSAVersion = 0x0101;
|
||||||
WSADATA WSAData;
|
WSADATA WSAData;
|
||||||
|
int err;
|
||||||
|
|
||||||
WSAStartup( WSAVersion, &WSAData );
|
err = WSAStartup( WSAVersion, &WSAData );
|
||||||
|
PR_ASSERT(0 == err);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
/* Doublecheck _pr_filetime_offset's hard-coded value is correct. */
|
/* Doublecheck _pr_filetime_offset's hard-coded value is correct. */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче