Changeset 284 in Main
- Timestamp:
- Oct 9, 2024, 11:44:20 AM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/main.c
r257 r284 125 125 void WINAPI servmain(DWORD argc, LPSTR* argv) { 126 126 char* path = get_registry("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Tewi HTTPd", "InstallDir"); 127 int st; 127 128 if(path != NULL) { 128 129 char* lpath = cm_strcat(path, "/logs/tewi.log"); … … 144 145 if(status_handle == NULL) return; 145 146 if(SetServiceStatus(status_handle, &status) == 0) return; 146 intst = startup(argc, argv);147 st = startup(argc, argv); 147 148 if(st != -1) { 148 149 status.dwWin32ExitCode = NO_ERROR; … … 528 529 int main(int argc, char** argv) { 529 530 int st; 530 logfile = stderr;531 531 #ifdef SERVICE 532 532 SERVICE_TABLE_ENTRY table[] = {{"Tewi HTTPd", servmain}, {NULL, NULL}}; 533 StartServiceCtrlDispatcher(table); 533 logfile = stderr; 534 if(!StartServiceCtrlDispatcher(table)){ 535 printf("Failed to start the service dispatcher\n"); 536 return 1; 537 } 534 538 #else 539 logfile = stderr; 535 540 #ifdef _PSP 536 541 pspDebugScreenInit();
Note:
See TracChangeset
for help on using the changeset viewer.