Minor fix to get it compiling on Windows

This commit is contained in:
rods 1998-07-06 19:56:08 +00:00
Родитель 2e4e8f8ced
Коммит 7006a21f95
2 изменённых файлов: 11 добавлений и 3 удалений

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

@ -25,13 +25,18 @@ extern nsresult WidgetTest(int * argc, char **argv);
void main(int argc, char **argv)
{
WidgetTest();
int argC = argc;
WidgetTest(&argC, argv);
}
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine,
int nCmdShow)
{
return(WidgetTest());
int argC = 0;
char ** argv = NULL;
return(WidgetTest(&argC, argv));
}
#endif

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

@ -205,7 +205,8 @@ void listSelfTest(FILE * fd, char * aTitle, nsIListWidget * listBox) {
fprintf(fd, "\tSelection should be [%d] is [%d] Test: [%s]\n",
inx, sel, eval(inx == (int)sel)); fflush(fd);
sel = listBox->FindItem(item4, 0);
nsString item4Str(item4);
sel = listBox->FindItem(item4Str, 0);
fprintf(fd, "\nTesting FindItem\n");fflush(fd);
fprintf(fd, "\tItem index should be [%d] index is [%d] Test: [%s]\n",
inx, sel, eval(inx == (int)sel)); fflush(fd);
@ -1087,6 +1088,8 @@ nsEventStatus PR_CALLBACK DoSelfTests(nsGUIEvent *aEvent)
listSelfTest(gFD, "ComboBox", comboBox);
multiListSelfTest(gFD, "Multi-ListBox", gMultiListBox);
return nsEventStatus_eIgnore;
}
/**--------------------------------------------------------------------------------