mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 14:46:09 +00:00
Return ERROR_RESOURCE_DATA_NOT_FOUND if open_resource_stream fails
This commit is contained in:
@@ -1711,7 +1711,11 @@ namespace kernel32 {
|
||||
const std::string name = resource_identifier_to_string(lpName);
|
||||
const std::string type = resource_identifier_to_string(lpType);
|
||||
|
||||
return open_resource_stream(type, name);
|
||||
FILE *res = open_resource_stream(type, name);
|
||||
if (!res) {
|
||||
wibo::lastError = ERROR_RESOURCE_DATA_NOT_FOUND;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
// https://github.com/reactos/reactos/blob/master/dll/win32/kernelbase/wine/loader.c#L1090
|
||||
|
||||
Reference in New Issue
Block a user