Update source files for bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:59:03 -05:00
parent d84b07a5cb
commit 3af3eab3e4
366 changed files with 7275 additions and 3834 deletions

View File

@@ -22,8 +22,9 @@ bool LoadBinaryResource(int binaryId, DWORD& dwSize, LPBYTE& pBytes) {
if (hGlob) {
dwSize = SizeofResource(hInst, hRes);
pBytes = (LPBYTE)LockResource(hGlob);
if (dwSize > 0 && pBytes)
if (dwSize > 0 && pBytes) {
return true;
}
}
}
@@ -56,8 +57,9 @@ class BinaryResourceProvider : public CefResourceManager::Provider {
std::string relative_path = url.substr(url_path_.length());
if (!relative_path.empty()) {
if (!resource_path_prefix_.empty())
if (!resource_path_prefix_.empty()) {
relative_path = resource_path_prefix_ + relative_path;
}
CefRefPtr<CefStreamReader> stream =
GetBinaryResourceReader(relative_path.data());
@@ -85,8 +87,9 @@ extern int GetResourceId(const char* resource_name);
bool LoadBinaryResource(const char* resource_name, std::string& resource_data) {
int resource_id = GetResourceId(resource_name);
if (resource_id == 0)
if (resource_id == 0) {
return false;
}
DWORD dwSize;
LPBYTE pBytes;
@@ -102,8 +105,9 @@ bool LoadBinaryResource(const char* resource_name, std::string& resource_data) {
CefRefPtr<CefStreamReader> GetBinaryResourceReader(const char* resource_name) {
int resource_id = GetResourceId(resource_name);
if (resource_id == 0)
if (resource_id == 0) {
return nullptr;
}
DWORD dwSize;
LPBYTE pBytes;