Changeset 21720 for branches/gcc-kmk/src/shlwapi/string_odin.cpp
- Timestamp:
- Oct 19, 2011, 11:26:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/shlwapi/string_odin.cpp
r21494 r21720 42 42 #include <heapstring.h> 43 43 #include <misc.h> 44 #include <win \shell.h>45 #include <win \winerror.h>44 #include <win/shell.h> 45 #include <win/winerror.h> 46 46 #include <winversion.h> 47 47 #include <winuser.h> … … 179 179 (lpString2 == NULL) ) 180 180 return 0; 181 181 182 182 LPSTR lpLoop = (LPSTR)lpString1; 183 183 184 184 for (; (*lpLoop != 0); lpLoop++ ) 185 185 if ( StrChrA( lpString2, *lpLoop ) ) 186 186 return (INT) (lpLoop - lpString1); 187 187 188 188 return (INT) (lpLoop - lpString1); 189 189 } … … 213 213 (lpString2 == NULL) ) 214 214 return 0; 215 215 216 216 LPWSTR lpLoop = (LPWSTR)lpString1; 217 217 218 218 for (; (*lpLoop != 0); lpLoop++ ) 219 219 if ( StrChrW( lpString2, *lpLoop ) ) 220 220 return (INT) (lpLoop - lpString1); 221 221 222 222 return (INT) (lpLoop - lpString1); 223 223 } … … 230 230 * Variables : 231 231 * Result : 232 * Remark : 232 * Remark : 233 233 * Status : UNTESTED 234 234 * … … 241 241 { 242 242 register LPSTR s1; 243 243 244 244 while (*lpString1) 245 245 { … … 255 255 lpString1++; 256 256 } 257 257 258 258 return (LPSTR)NULL; 259 259 } … … 266 266 * Variables : 267 267 * Result : 268 * Remark : 268 * Remark : 269 269 * Status : UNTESTED 270 270 * … … 277 277 { 278 278 register LPWSTR s1; 279 279 280 280 while (*lpString1) 281 281 { … … 291 291 lpString1++; 292 292 } 293 293 294 294 return (LPWSTR)NULL; 295 295 } … … 304 304 305 305 dprintf(("StrRStrIA %x %x %x NOT IMPLEMENTED correctly", lpFirst, lpSrch, unknown)); 306 306 307 307 // lpSrch cannot fit into lpFirst 308 308 if (iLen < 0) 309 309 return (LPSTR)NULL; 310 310 311 311 LPSTR lpThis = (LPSTR)lpFirst + iLen; 312 312 313 313 while (lpThis >= lpFirst) 314 314 { … … 318 318 lpThis--; 319 319 } 320 320 321 321 return NULL; 322 322 } … … 331 331 332 332 dprintf(("StrRStrIA %x %x %x NOT IMPLEMENTED correctly", lpFirst, lpSrch, unknown)); 333 333 334 334 // lpSrch cannot fit into lpFirst 335 335 if (iLen < 0) 336 336 return (LPWSTR)NULL; 337 337 338 338 LPWSTR lpThis = (LPWSTR)lpFirst + iLen; 339 339 340 340 while (lpThis >= lpFirst) 341 341 { … … 345 345 lpThis--; 346 346 } 347 347 348 348 return NULL; 349 349 }
Note:
See TracChangeset
for help on using the changeset viewer.