Skip to content

Commit

Permalink
minor code and readme correction
Browse files Browse the repository at this point in the history
  • Loading branch information
FRex committed Mar 23, 2019
1 parent b3401dd commit f8d2786
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ See examples below.

```
$ csoinfo.exe
Usage: csoinfo.exe [-t] file.cso ...
Usage: csoinfo32v19_03_23.exe [-t] file.cso file.zso ...
```

```
$ csoinfo.exe test.cso test.iso
test.cso: 46096341/58433536, 43.961 MiB/55.727 MiB, 78.89%, 2048 byte blocks
test.iso: no CISO 4 magic bytes
test.iso: no CISO or ZISO 4 magic bytes
```

```
Expand All @@ -77,7 +77,7 @@ TOTAL: 139848226/175300608, 133.370 MiB/167.180 MiB, 79.78%, 0 byte blocks

```
$ csoinfo.exe test.iso nofile.hehe smallfile
test.iso: no CISO 4 magic bytes
test.iso: no CISO or ZISO 4 magic bytes
nofile.hehe: _wfopen failed
smallfile: fread failed = 2
```
Expand Down
4 changes: 2 additions & 2 deletions csoinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static int process_cso_file(const wchar_t * fname, u64 * totalsize, u64 * totalo
{
if(0 != strncmp(buff, "CISO", 4u) && 0 != strncmp(buff, "ZISO", 4u))
{
wprintf(L"%ls: no CISO/ZISO 4 magic bytes\n", fname);
wprintf(L"%ls: no CISO or ZISO 4 magic bytes\n", fname);
fclose(f);
return 1;
}
Expand Down Expand Up @@ -177,7 +177,7 @@ int wmain(int argc, wchar_t ** argv)

if(argc < 2)
{
wprintf(L"Usage: %ls [-t] file.cso ...\n", filepath_to_filename(argv[0]));
wprintf(L"Usage: %ls [-t] file.cso file.zso ...\n", filepath_to_filename(argv[0]));
return 1;
}

Expand Down

0 comments on commit f8d2786

Please sign in to comment.