Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Unified Diff: base/win/resource_util.cc

Issue 11778073: Add support for getting the 256x256 app icon on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/win/resource_util.h ('k') | chrome/browser/app_icon_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « base/win/resource_util.h ('k') | chrome/browser/app_icon_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698