Update to spice2x-23-06-08
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
#include "resutils.h"
|
||||
#include "util/utils.h"
|
||||
|
||||
const char *resutil::load_file(int name, LPCSTR type, DWORD *size) {
|
||||
const char *resutil::load_file(int name, DWORD *size, LPCSTR type) {
|
||||
HMODULE handle = GetModuleHandle(NULL);
|
||||
HRSRC rc = FindResource(handle, MAKEINTRESOURCE(name), type);
|
||||
HGLOBAL rcData = LoadResource(handle, rc);
|
||||
@@ -12,7 +12,7 @@ const char *resutil::load_file(int name, LPCSTR type, DWORD *size) {
|
||||
|
||||
std::string resutil::load_file_string(int name, LPCSTR type) {
|
||||
DWORD size = 0;
|
||||
auto data = resutil::load_file(name, type, &size);
|
||||
auto data = resutil::load_file(name, &size, type);
|
||||
return std::string(data, size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user