| Index: base/win/resource_util.cc
|
| ===================================================================
|
| --- base/win/resource_util.cc (revision 176351)
|
| +++ base/win/resource_util.cc (working copy)
|
| @@ -7,8 +7,12 @@
|
|
|
| namespace base {
|
| namespace win {
|
| -bool GetDataResourceFromModule(HMODULE module, int resource_id,
|
| - void** data, size_t* length) {
|
| +
|
| +bool GetResourceFromModule(HMODULE module,
|
| + int resource_id,
|
| + LPCTSTR resource_type,
|
| + void** data,
|
| + size_t* length) {
|
| if (!module)
|
| return false;
|
|
|
| @@ -18,7 +22,7 @@
|
| }
|
|
|
| HRSRC hres_info = FindResource(module, MAKEINTRESOURCE(resource_id),
|
| - L"BINDATA");
|
| + resource_type);
|
| if (NULL == hres_info)
|
| return false;
|
|
|
| @@ -35,5 +39,13 @@
|
| *length = static_cast<size_t>(data_size);
|
| return true;
|
| }
|
| +
|
| +bool GetDataResourceFromModule(HMODULE module,
|
| + int resource_id,
|
| + void** data,
|
| + size_t* length) {
|
| + return GetResourceFromModule(module, resource_id, L"BINDATA", data, length);
|
| +}
|
| +
|
| } // namespace win
|
| } // namespace base
|
|
|