409
410
411
412
413
414
415
416
417
418
419
420
421
422
|
Config *cp;
if (sscanf(p + 1, "%p", &filemap) == 1 &&
(cp = MapViewOfFile(filemap, FILE_MAP_READ,
0, 0, sizeof(Config))) != NULL) {
cfg = *cp;
UnmapViewOfFile(cp);
CloseHandle(filemap);
} else if (!do_config()) {
cleanup_exit(0);
}
} else {
/*
* Otherwise, break up the command line and deal with
* it sensibly.
|
>
|
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
|
Config *cp;
if (sscanf(p + 1, "%p", &filemap) == 1 &&
(cp = MapViewOfFile(filemap, FILE_MAP_READ,
0, 0, sizeof(Config))) != NULL) {
cfg = *cp;
UnmapViewOfFile(cp);
CloseHandle(filemap);
loaded_session = TRUE;
} else if (!do_config()) {
cleanup_exit(0);
}
} else {
/*
* Otherwise, break up the command line and deal with
* it sensibly.
|