Changeset 259 for trunk/src/user32/dlgconvert.cpp
- Timestamp:
- Jul 2, 1999, 2:43:30 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dlgconvert.cpp
r120 r259 1 /* $Id: dlgconvert.cpp,v 1. 5 1999-06-19 10:54:46sandervl Exp $ */1 /* $Id: dlgconvert.cpp,v 1.6 1999-07-02 12:42:57 sandervl Exp $ */ 2 2 3 3 /* … … 17 17 #define INCL_DOSMISC /* DOS Miscellanous values */ 18 18 #define INCL_WIN 19 #include <os2wrap.h> 19 #include <os2wrap.h> //Odin32 OS/2 api wrappers 20 20 #include <stdio.h> 21 21 #include <string.h> … … 216 216 strcpy((char *)dlgcurdata, ctrltext); 217 217 dlgcurdata += dlgitem->cchText + 1; //include terminating 0 (just to be sure) 218 } else 219 { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields) 220 dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt); 221 dlgcurdata++; //0 at offText 218 222 } 219 223 FreeAsciiString(ctrltext); … … 315 319 strcpy((char *)dlgcurdata, ctrltext); 316 320 dlgcurdata += dlgitem->cchText + 1; //include terminating 0 (just to be sure) 321 } else 322 { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields) 323 dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt); 324 dlgcurdata++; //0 at offText 317 325 } 318 326 } … … 485 493 strcpy((char *)dlgcurdata, ctrltext); 486 494 dlgcurdata += dlgitem->cchText + 1; //include terminating 0 (just to be sure) 495 } else 496 { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields) 497 dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt); 498 dlgcurdata++; //0 at offText 487 499 } 488 500 FreeAsciiString(ctrltext); … … 583 595 strcpy((char *)dlgcurdata, ctrltext); 584 596 dlgcurdata += dlgitem->cchText + 1; //include terminating 0 (just to be sure) 597 } else 598 { //CB: cchText == 0, OS/2 uses offText anyway! (entryfields) 599 dlgitem->offText = (USHORT)((int)dlgcurdata-(int)dlgt); 600 dlgcurdata++; //0 at offText 585 601 } 586 602 }
Note:
See TracChangeset
for help on using the changeset viewer.