mirror of
https://github.com/reactos/reactos.git
synced 2025-06-20 07:36:05 +00:00
[CSCRIPT][WSCRIPT] Sync with Wine Staging 3.17. CORE-15127
This commit is contained in:
parent
82faa151e5
commit
fd8ec79fd1
5 changed files with 12 additions and 10 deletions
|
@ -256,7 +256,7 @@ static BOOL get_engine_clsid(const WCHAR *ext, CLSID *clsid)
|
|||
if(res != ERROR_SUCCESS)
|
||||
return FALSE;
|
||||
|
||||
size = sizeof(fileid)/sizeof(WCHAR);
|
||||
size = ARRAY_SIZE(fileid);
|
||||
res = RegQueryValueW(hkey, NULL, fileid, &size);
|
||||
RegCloseKey(hkey);
|
||||
if(res != ERROR_SUCCESS)
|
||||
|
@ -269,7 +269,7 @@ static BOOL get_engine_clsid(const WCHAR *ext, CLSID *clsid)
|
|||
if(res != ERROR_SUCCESS)
|
||||
return FALSE;
|
||||
|
||||
size = sizeof(progid)/sizeof(WCHAR);
|
||||
size = ARRAY_SIZE(progid);
|
||||
res = RegQueryValueW(hkey, NULL, progid, &size);
|
||||
RegCloseKey(hkey);
|
||||
if(res != ERROR_SUCCESS)
|
||||
|
@ -449,8 +449,8 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm
|
|||
WINE_FIXME("No file name specified\n");
|
||||
return 1;
|
||||
}
|
||||
res = GetFullPathNameW(filename, sizeof(scriptFullName)/sizeof(WCHAR), scriptFullName, &filepart);
|
||||
if(!res || res > sizeof(scriptFullName)/sizeof(WCHAR))
|
||||
res = GetFullPathNameW(filename, ARRAY_SIZE(scriptFullName), scriptFullName, &filepart);
|
||||
if(!res || res > ARRAY_SIZE(scriptFullName))
|
||||
return 1;
|
||||
|
||||
ext = strrchrW(filepart, '.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue