mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 973138 - Fixed goto crossing variable declaration (fixes GCC compilation).
--HG-- extra : rebase_source : 8b488731cb06cab3fc1e74e66f88046583e95fc2
This commit is contained in:
parent
37b0fcfa8d
commit
a61a0617b4
@ -454,6 +454,7 @@ patched_LdrLoadDll (PWCHAR filePath, PULONG flags, PUNICODE_STRING moduleFileNam
|
|||||||
#define DLLNAME_MAX 128
|
#define DLLNAME_MAX 128
|
||||||
char dllName[DLLNAME_MAX+1];
|
char dllName[DLLNAME_MAX+1];
|
||||||
wchar_t *dll_part;
|
wchar_t *dll_part;
|
||||||
|
char *dot;
|
||||||
DllBlockInfo *info;
|
DllBlockInfo *info;
|
||||||
|
|
||||||
int len = moduleFileName->Length / 2;
|
int len = moduleFileName->Length / 2;
|
||||||
@ -520,7 +521,7 @@ patched_LdrLoadDll (PWCHAR filePath, PULONG flags, PUNICODE_STRING moduleFileNam
|
|||||||
|
|
||||||
// Block a suspicious binary that uses various 12-digit hex strings
|
// Block a suspicious binary that uses various 12-digit hex strings
|
||||||
// e.g. MovieMode.48CA2AEFA22D.dll (bug 973138)
|
// e.g. MovieMode.48CA2AEFA22D.dll (bug 973138)
|
||||||
char * dot = strchr(dllName, '.');
|
dot = strchr(dllName, '.');
|
||||||
if (dot && (strchr(dot+1, '.') == dot+13)) {
|
if (dot && (strchr(dot+1, '.') == dot+13)) {
|
||||||
char * end = nullptr;
|
char * end = nullptr;
|
||||||
_strtoui64(dot+1, &end, 16);
|
_strtoui64(dot+1, &end, 16);
|
||||||
|
Loading…
Reference in New Issue
Block a user