diff options
author | pixel <pixel> | 2003-11-25 01:55:45 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-11-25 01:55:45 +0000 |
commit | d9b7d14e9332542ae2ba1991849b061b555c1113 (patch) | |
tree | 2a4de2965a9edefd100d3678a2ad14b80e40a04e /lib/cdreader.cpp | |
parent | df3bb461770d7667a082398b49eb08a602f82e9b (diff) |
Blaah
Diffstat (limited to 'lib/cdreader.cpp')
-rw-r--r-- | lib/cdreader.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/cdreader.cpp b/lib/cdreader.cpp index 33ba1b2..d3d315f 100644 --- a/lib/cdreader.cpp +++ b/lib/cdreader.cpp @@ -126,15 +126,16 @@ void cdreader::getsector(void *buf, int sec) throw (GeneralException) { #if defined (_MSC_VER) || defined (__MINGW32__) cdreader::cdreader(const String & no) throw (GeneralException) : Handle(-1), n(no), sector(0) { - if (!(hF = cdabstract::OpenIOCTLFile(no[0]))) + if (!(hFile = cdabstract::OpenIOCTLFile(no[0]))) throw GeneralException("Error opening device " + no); } -cdreader::cdreader(const cdreader & i) : Handle(i), n(i.n), hF(i.hF) { +cdreader::cdreader(const cdreader & i) : Handle(i), n(i.n) { + hFile = i.hFile; } void cdreader::close() throw (GeneralException) { - CloseHandle(hF); + CloseHandle(hFile); } typedef enum _TRACK_MODE_TYPE {
@@ -163,7 +164,7 @@ void cdreader::getsector(void *buf, int sec) throw (GeneralException) { while (!done) {
SetLastError(0);
- bStat = DeviceIoControl(hF, IOCTL_CDROM_RAW_READ,
+ bStat = DeviceIoControl(hFile, IOCTL_CDROM_RAW_READ,
&rawIOCTL, sizeof(RAW_READ_INFO),
buf, 2352, &dwRet, NULL);
if (!bStat) {
|