This commit is contained in:
darin%netscape.com 2001-03-07 06:35:36 +00:00
Родитель d2224691b2
Коммит 25c049947f
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -170,7 +170,8 @@ nsresult TestMCTransport(const char *filename)
#endif #endif
nsCOMPtr<nsIOutputStream> os; nsCOMPtr<nsIOutputStream> os;
transport->OpenOutputStream(0, (PRUint32) -1, 0, getter_AddRefs(os)); rv = transport->OpenOutputStream(0, (PRUint32) -1, 0, getter_AddRefs(os));
if (NS_FAILED(rv)) return rv;
char *out = PR_smprintf("%s.out", filename); char *out = PR_smprintf("%s.out", filename);
nsCOMPtr<nsIStreamListener> listener = new TestListener(out); nsCOMPtr<nsIStreamListener> listener = new TestListener(out);
@ -178,7 +179,8 @@ nsresult TestMCTransport(const char *filename)
return NS_ERROR_OUT_OF_MEMORY; return NS_ERROR_OUT_OF_MEMORY;
nsCOMPtr<nsIRequest> req; nsCOMPtr<nsIRequest> req;
transport->AsyncRead(listener, nsnull, 0, (PRUint32) -1, 0, getter_AddRefs(req)); rv = transport->AsyncRead(listener, nsnull, 0, (PRUint32) -1, 0, getter_AddRefs(req));
if (NS_FAILED(rv)) return rv;
FILE *file = fopen(filename, "r"); FILE *file = fopen(filename, "r");
if (!file) if (!file)