Changeset 1505 for trunk/dll/walkem.c
- Timestamp:
- Apr 12, 2010, 12:29:56 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/walkem.c
r1498 r1505 205 205 return; 206 206 207 if (!PrfQueryProfileSize(fmprof, (CHAR *)FM3Str, pszLastSetups, &ulDataBytes)) {207 if (!PrfQueryProfileSize(fmprof, FM3Str, pszLastSetups, &ulDataBytes)) { 208 208 // fixme to use generic hab 209 209 ERRORID eid = WinGetLastError((HAB)0); 210 210 if ((eid & 0xffff) != PMERR_NOT_IN_IDX) { 211 211 // Get error info back 212 PrfQueryProfileSize(fmprof, (CHAR *)FM3Str, pszLastSetups, &ulDataBytes);212 PrfQueryProfileSize(fmprof, FM3Str, pszLastSetups, &ulDataBytes); 213 213 Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__, PCSZ_PRFQUERYPROFILESIZE); 214 214 } … … 227 227 return; 228 228 l = ulDataBytes; 229 if (!PrfQueryProfileData(fmprof, (CHAR *)FM3Str, pszLastSetups, pszBuf, &l)) {229 if (!PrfQueryProfileData(fmprof, FM3Str, pszLastSetups, pszBuf, &l)) { 230 230 Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__, PCSZ_PRFQUERYPROFILEDATA); 231 231 free(pszBuf); … … 322 322 323 323 if (!PrfWriteProfileData(fmprof, 324 (CHAR *)FM3Str,324 FM3Str, 325 325 pszLastSetups, pszBuf, ulBufBytes)) { 326 326 ERRORID eid = WinGetLastError((HAB)0); … … 330 330 331 331 // Delete obsolete INI entry 332 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "LastSetup", NULL, 0);332 PrfWriteProfileData(fmprof, FM3Str, "LastSetup", NULL, 0); 333 333 } 334 334 … … 778 778 ULONG size = sizeof(SWP); 779 779 780 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "WalkDir.Position", (PVOID) &swp, &size);780 PrfQueryProfileData(fmprof, FM3Str, "WalkDir.Position", (PVOID) &swp, &size); 781 781 swp.fl &= ~SWP_SIZE; // 04 Feb 09 SHL ignore saved size 782 782 WinSetWindowPos(hwnd, … … 1269 1269 ULONG size = sizeof(SWP); 1270 1270 WinQueryWindowPos(hwnd, &swp); 1271 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "WalkDir.Position", (PVOID) &swp,1271 PrfWriteProfileData(fmprof, FM3Str, "WalkDir.Position", (PVOID) &swp, 1272 1272 size); 1273 1273 } … … 1290 1290 1291 1291 WinQueryWindowPos(hwnd, &swp); 1292 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "WalkDir.Position", (PVOID) &swp,1292 PrfWriteProfileData(fmprof, FM3Str, "WalkDir.Position", (PVOID) &swp, 1293 1293 size); 1294 1294 } … … 1404 1404 ULONG size = sizeof(SWP); 1405 1405 1406 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "WalkDir2.Position", (PVOID) &swp, &size);1406 PrfQueryProfileData(fmprof, FM3Str, "WalkDir2.Position", (PVOID) &swp, &size); 1407 1407 swp.fl &= ~SWP_SIZE; // 04 Feb 09 SHL ignore saved size 1408 1408 WinSetWindowPos(hwnd, … … 1686 1686 1687 1687 WinQueryWindowPos(hwnd, &swp); 1688 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "WalkDir2.Position", (PVOID) &swp,1688 PrfWriteProfileData(fmprof, FM3Str, "WalkDir2.Position", (PVOID) &swp, 1689 1689 size); 1690 1690 } … … 1705 1705 1706 1706 WinQueryWindowPos(hwnd, &swp); 1707 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "WalkDir2.Position", (PVOID) &swp,1707 PrfWriteProfileData(fmprof, FM3Str, "WalkDir2.Position", (PVOID) &swp, 1708 1708 size); 1709 1709 }
Note:
See TracChangeset
for help on using the changeset viewer.