Commit 10c20cc
committed
[librpfile] RpFile_scsi_win32.cpp, rereadDeviceSizeOS(): Check d->filenameW, not d->filename.
d->filename is usually nullptr at this point on Windows.
Also, ensure that d->filenameW is neither NULL nor an empty string.
It shouldn't happen, but a redundant check is better than a crash.
See #413: Exports/Imports table in win32 shell ext page showing blank rows
Reported by @ksharperd.1 parent ed2999e commit 10c20cc
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | 65 | | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
0 commit comments