Ignore:
Timestamp:
Mar 28, 2000, 5:28:54 PM (25 years ago)
Author:
cbratschi
Message:

floppy name resource, release fix (don't use pdump)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/shellpath.cpp

    r3243 r3257  
    1 /* $Id: shellpath.cpp,v 1.7 2000-03-26 16:34:52 cbratschi Exp $ */
     1/* $Id: shellpath.cpp,v 1.8 2000-03-28 15:28:52 cbratschi Exp $ */
    22
    33/*
     
    555555  return 0;
    556556}
     557
    557558static BOOL PathMatchSingleMaskW(LPCWSTR name, LPCWSTR mask)
    558559{
    559   while (*name && *mask && *mask!=';') {
    560     if (*mask=='*') {
    561       do {
    562    if (PathMatchSingleMaskW(name,mask+1)) return 1;  /* try substrings */
     560  while (*name && *mask && (*mask != ';'))
     561  {
     562    if (*mask == '*')
     563    {
     564      do
     565      {
     566        if (PathMatchSingleMaskW(name,mask+1)) return 1;  /* try substrings */
    563567      } while (*name++);
    564       return 0;
     568      return FALSE;
    565569    }
    566     if (towupper(*mask)!=towupper(*name) && *mask!='?') return 0;
     570    if ((towupper(*mask) != towupper(*name)) && (*mask != '?')) return 0;
    567571    name++;
    568572    mask++;
    569573  }
    570   if (!*name) {
    571     while (*mask=='*') mask++;
    572     if (!*mask || *mask==';') return 1;
     574  if (!*name)
     575  {
     576    while (*mask == '*') mask++;
     577    if (!*mask || (*mask == ';')) return TRUE;
    573578  }
    574   return 0;
     579
     580  return FALSE;
    575581}
    576582/*************************************************************************
     
    586592  TRACE("%s %s\n",name,mask);
    587593
    588   if (!lstrcmpA( mask, "*.*" )) return 1;   /* we don't require a period */
    589 
    590   while (*mask) {
    591     if (PathMatchSingleMaskA(name,mask)) return 1;    /* helper function */
     594  if (!lstrcmpA( mask, "*.*" )) return TRUE;   /* we don't require a period */
     595
     596  while (*mask)
     597  {
     598    if (PathMatchSingleMaskA(name,mask)) return TRUE;    /* helper function */
    592599    while (*mask && *mask!=';') mask++;
    593     if (*mask==';') {
     600    if (*mask==';')
     601    {
    594602      mask++;
    595603      while (*mask==' ') mask++;      /*  masks may be separated by "; " */
    596      }
    597    }
    598   return 0;
    599 }
     604    }
     605  }
     606
     607  return FALSE;
     608}
     609
    600610ODINFUNCTION2(BOOL, PathMatchSpecW,
    601611              LPCWSTR, name,
    602612              LPCWSTR, mask)
    603 {  WCHAR stemp[4];
     613{
    604614  TRACE("%ls %ls\n",name,mask);
    605    lstrcpyAtoW(stemp,"*.*");
    606   if (!lstrcmpW( mask, stemp )) return 1;   /* we don't require a period */
    607 
    608   while (*mask) {
    609     if (PathMatchSingleMaskW(name,mask)) return 1;    /* helper function */
    610     while (*mask && *mask!=';') mask++;
    611     if (*mask==';') {
     615
     616  if (!lstrcmpW( mask, (WCHAR*)L"*.*" )) return TRUE;   /* we don't require a period */
     617
     618  while (*mask)
     619  {
     620    if (PathMatchSingleMaskW(name,mask)) return TRUE;    /* helper function */
     621    while (*mask && (*mask != ';')) mask++;
     622    if (*mask == ';')
     623    {
    612624      mask++;
    613625      while (*mask==' ') mask++;       /* masks may be separated by "; " */
    614      }
    615    }
    616   return 0;
     626    }
     627  }
     628
     629  return FALSE;
    617630}
    618631ODINFUNCTION2(BOOL, PathMatchSpecAW,
    619632              LPVOID, name,
    620633              LPVOID, mask)
    621 {  if (VERSION_OsIsUnicode())
     634{
     635   if (VERSION_OsIsUnicode())
    622636     return PathMatchSpecW( (LPWSTR)name, (LPWSTR)mask );
    623637   return PathMatchSpecA( (LPSTR)name, (LPSTR)mask );
     
    12951309    FIXME("(%p),stub!\n", pSubKey);
    12961310
    1297         return ERROR_SUCCESS;  /* return success */
     1311        return ERROR_SUCCESS;  /* return success */
    12981312}
    12991313
     
    13091323    FIXME("(%p),stub!\n", pSubKey);
    13101324
    1311         return ERROR_SUCCESS;  /* return success */
     1325        return ERROR_SUCCESS;  /* return success */
    13121326}
    13131327
     
    13271341    FIXME("(%p),stub!\n", pSubKey);
    13281342
    1329         return ERROR_SUCCESS;  /* return success */
     1343        return ERROR_SUCCESS;  /* return success */
    13301344}
    13311345
     
    13431357    FIXME("(%p),stub!\n", pSubKey);
    13441358
    1345         return ERROR_SUCCESS;  /* return success */
    1346 }
    1347 
     1359        return ERROR_SUCCESS;  /* return success */
     1360}
     1361
Note: See TracChangeset for help on using the changeset viewer.