Changeset 1344 for trunk/dll/extract.c
- Timestamp:
- Dec 19, 2008, 2:40:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/extract.c
r1306 r1344 100 100 { 101 101 EXTRDATA *arcdata = NULL; 102 ULONG size = sizeof(BOOL);102 ULONG size; 103 103 BOOL fFileNameExtPath; 104 104 … … 108 108 arcdata = (EXTRDATA *) mp2; 109 109 { 110 ULONG sizet;110 BOOL fDirectory = FALSE; 111 111 BOOL fRemember = FALSE; 112 BOOL fDirectory = FALSE;113 112 PFNWP oldproc; 114 113 … … 118 117 if (oldproc) 119 118 WinSetWindowPtr(WinWindowFromID(hwnd, EXT_DIRECTORY), 120 QWL_USER, (PVOID) oldproc); 119 QWL_USER, (PVOID) oldproc); 120 size = sizeof(BOOL); 121 121 PrfQueryProfileData(fmprof, FM3Str, "RememberExt", 122 (PVOID) & fRemember, &size); 122 (PVOID) & fRemember, &size); 123 size = sizeof(BOOL); 123 124 PrfQueryProfileData(fmprof, FM3Str, "DirectoryExt", 124 125 (PVOID) & fDirectory, &size); 126 size = sizeof(BOOL); 125 127 PrfQueryProfileData(fmprof, FM3Str, "FileNamePathExt", 126 128 (PVOID) & fFileNameExtPath, &size); … … 171 173 if (fRemember) { 172 174 173 CHAR textdir[CCHMAXPATH]; 174 175 sizet = sizeof(textdir); 176 *textdir = 0; 177 PrfQueryProfileData(fmprof, FM3Str, "Ext_ExtractDir", 178 (PVOID) textdir, &size); 175 CHAR textdir[CCHMAXPATH]; 176 177 PrfQueryProfileString(fmprof, FM3Str, "Ext_ExtractDir", NULL, textdir, sizeof(textdir)); 179 178 if (*textdir && !IsFile(textdir)) 180 179 strcpy(arcdata->extractdir, textdir); 181 sizet = sizeof(textdir); 182 *textdir = 0; 183 PrfQueryProfileData(fmprof, FM3Str, "Ext_Mask", (PVOID) textdir, 184 &size); 180 PrfQueryProfileString(fmprof, FM3Str, "Ext_Mask", NULL, textdir, sizeof(textdir)); 185 181 WinSetDlgItemText(hwnd, EXT_MASK, textdir); 186 182 } … … 224 220 WinEnableWindow(WinWindowFromID(hwnd, EXT_WDIRS), FALSE); 225 221 else if (fRemember) { 226 //size = sizeof(BOOL);227 fRemember = FALSE;222 fRemember = FALSE; 223 size = sizeof(BOOL); 228 224 PrfQueryProfileData(fmprof, FM3Str, "Ext_WDirs", 229 225 (PVOID) &fRemember, &size); … … 251 247 { 252 248 BOOL fRemember = WinQueryButtonCheckstate(hwnd, EXT_REMEMBER); 253 249 size = sizeof(BOOL); 254 250 PrfWriteProfileData(fmprof, FM3Str, "RememberExt", 255 (PVOID) &fRemember, size); 251 (PVOID) &fRemember, size); 252 WinSendDlgItemMsg(hwnd, EXT_FILENAMEEXT, BM_SETCHECK, 253 MPFROM2SHORT(FALSE, 0), MPVOID); 256 254 } 257 255 break; … … 260 258 { 261 259 BOOL fDirectory = WinQueryButtonCheckstate(hwnd, EXT_AWDIRS); 262 260 size = sizeof(BOOL); 263 261 PrfWriteProfileData(fmprof, FM3Str, "DirectoryExt", 264 262 (PVOID) &fDirectory, size); … … 279 277 case EXT_FILENAMEEXT: 280 278 { 281 BOOL fFileNameExtPath = WinQueryButtonCheckstate(hwnd, EXT_FILENAMEEXT); 282 279 BOOL fFileNameExtPath = WinQueryButtonCheckstate(hwnd, EXT_FILENAMEEXT); 280 BOOL fRemember = WinQueryButtonCheckstate(hwnd, EXT_REMEMBER); 281 size = sizeof(BOOL); 283 282 PrfWriteProfileData(fmprof, FM3Str, "FileNamePathExt", 284 (PVOID) &fFileNameExtPath, size); 283 fRemember ? FALSE : (PVOID) &fFileNameExtPath, size); 284 if (fRemember) 285 break; 285 286 if (fFileNameExtPath && arcdata->arcname) { 286 287 CHAR FileName[CCHMAXPATH]; … … 426 427 if (fRemember) { 427 428 PrfWriteProfileString(fmprof, FM3Str, "Ext_ExtractDir", s); 428 fRemember = WinQueryButtonCheckstate(hwnd, EXT_WDIRS); 429 fRemember = WinQueryButtonCheckstate(hwnd, EXT_WDIRS); 430 size = sizeof(BOOL); 429 431 PrfWriteProfileData(fmprof, FM3Str, "Ext_WDirs", 430 432 (PVOID) &fRemember, size);
Note:
See TracChangeset
for help on using the changeset viewer.