ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/VTBFileUtil2/ScanUtility.cxx
(Generate patch)

Comparing trunk/VTBFileUtil2/ScanUtility.cxx (file contents):
Revision 290 by douglas, 2003-09-04T18:57:00-07:00 vs.
Revision 291 by douglas, 2003-09-05T01:57:00-07:00

# Line 2 | Line 2
2   //
3   // Douglas Thrift
4   //
5 < // $Id: ScanUtility.cxx,v 1.15 2003/09/05 01:57:00 douglas Exp $
5 > // $Id: ScanUtility.cxx,v 1.16 2003/09/05 08:57:00 douglas Exp $
6  
7   #include "ScanUtility.h"
8  
# Line 193 | Line 193 | void ScanUtility::saveDirs(void)
193   {
194          HKEY key;
195  
196 <        if (RegCreateKeyEx(HKEY_CURRENT_USER,
196 >        if (LONG code = RegCreateKeyEx(HKEY_CURRENT_USER,
197                  "Software\\DouglasThrift\\VTBFileUtil2", 0, NULL,
198                  REG_OPTION_NON_VOLATILE, KEY_QUERY_VALUE | KEY_SET_VALUE, NULL, &key,
199                  NULL) == ERROR_SUCCESS)
# Line 218 | Line 218 | void ScanUtility::saveDirs(void)
218                                  LPBYTE(scanDir.c_str()), scanDir.length() + 1) !=
219                                  ERROR_SUCCESS)
220                          {
221 <                                error();
221 >                                error(NULL, code);
222                          }
223                  }
224  
# Line 240 | Line 240 | void ScanUtility::saveDirs(void)
240                                  LPBYTE(saveDir.c_str()), saveDir.length() + 1) !=
241                                  ERROR_SUCCESS)
242                          {
243 <                                error();
243 >                                error(NULL, code);
244                          }
245                  }
246  
# Line 248 | Line 248 | void ScanUtility::saveDirs(void)
248          }
249          else
250          {
251 <                error();
251 >                error(NULL, code);
252          }
253   }
254  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines