~ubuntu-branches/ubuntu/precise/wine1.3/precise

« back to all changes in this revision

Viewing changes to dlls/ole32/stg_prop.c

  • Committer: Package Import Robot
  • Author(s): Scott Ritchie
  • Date: 2012-01-17 09:00:34 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120117090034-eyhpp02jawlvrrkc
Tags: 1.3.37-0ubuntu1
* New upstream release
  - Many changes
* Convert to 3.0 source format
* debian/control:
  - Remove pre-multiarch amd64 build depends
  - Remove quilt build depends
  - Recommend proper gecko versions
* debian/rules:
  - Remove manual dh_quilt patch and unpatch
  - No need to uuencode/uudecode anymore with new source format

Show diffs side-by-side

added added

removed removed

Lines of Context:
1111
1111
        }
1112
1112
        break;
1113
1113
    }
 
1114
    case VT_BLOB:
 
1115
    {
 
1116
        DWORD count;
 
1117
 
 
1118
        StorageUtl_ReadDWord(data, 0, &count);
 
1119
        prop->u.blob.cbSize = count;
 
1120
        prop->u.blob.pBlobData = CoTaskMemAlloc(count);
 
1121
        if (prop->u.blob.pBlobData)
 
1122
        {
 
1123
            memcpy(prop->u.blob.pBlobData, data + sizeof(DWORD), count);
 
1124
            TRACE("Read blob value of size %d\n", count);
 
1125
        }
 
1126
        else
 
1127
            hr = STG_E_INSUFFICIENTMEMORY;
 
1128
        break;
 
1129
    }
1114
1130
    case VT_LPWSTR:
1115
1131
    {
1116
1132
        DWORD count;
1746
1762
        bytesWritten = count + sizeof cf_hdr;
1747
1763
        break;
1748
1764
    }
 
1765
    case VT_CLSID:
 
1766
    {
 
1767
        CLSID temp;
 
1768
 
 
1769
        StorageUtl_WriteGUID((BYTE *)&temp, 0, var->u.puuid);
 
1770
        hr = IStream_Write(This->stm, &temp, sizeof(temp), &count);
 
1771
        bytesWritten = count;
 
1772
        break;
 
1773
    }
1749
1774
    default:
1750
1775
        FIXME("unsupported type: %d\n", var->vt);
1751
1776
        return STG_E_INVALIDPARAMETER;