+1

Yes, if all WINAPI signatures should be hotpatch.
Otherwise, a local redefinition of WINAPI in the relevant files
would also be cleaner than changing every signature one by one.

L.

On 2016-10-20 15.54, Timo Kreuzer wrote:
> What about adding it to WINAPI?
>
> #ifdef _HOTPATCH_MODULE_
> #define WINAPI __stdcall DECLSPEC_HOTPATCH
> #else
> #endif
> #define WINAPI __stdcall
> Timo
>
> Am 20.10.2016 um 00:26 schrieb hbelu...@svn.reactos.org:
>> Author: hbelusca
>> Date: Wed Oct 19 22:26:04 2016
>> New Revision: 72997
>>
>> URL: http://svn.reactos.org/svn/reactos?rev=72997&view=rev
>> Log:
>> [KERNEL32]: Mark Get/SetEnvironmentVariableA/W as hotpatchable since 
>> it's needed for Clink 0.4.8 (<rant>btw, if GCC was able to set 
>> exported stdcall functions as hotpatchable at a global level, as MSVC 
>> does, those "DECLSPEC_HOTPATCH" hacks would not be necessary! </rant>)
>>
>> Modified:
>>      trunk/reactos/dll/win32/kernel32/client/environ.c
>>
>> Modified: trunk/reactos/dll/win32/kernel32/client/environ.c
>> URL: 
>> http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/environ.c?rev=72997&r1=72996&r2=72997&view=diff
>> ==============================================================================
>>  
>>
>> --- trunk/reactos/dll/win32/kernel32/client/environ.c [iso-8859-1] 
>> (original)
>> +++ trunk/reactos/dll/win32/kernel32/client/environ.c [iso-8859-1] 
>> Wed Oct 19 22:26:04 2016
>> @@ -24,6 +24,7 @@
>>    */
>>   DWORD
>>   WINAPI
>> +DECLSPEC_HOTPATCH
>>   GetEnvironmentVariableA(IN LPCSTR lpName,
>>                           IN LPSTR lpBuffer,
>>                           IN DWORD nSize)
>> @@ -158,6 +159,7 @@
>>    */
>>   DWORD
>>   WINAPI
>> +DECLSPEC_HOTPATCH
>>   GetEnvironmentVariableW(IN LPCWSTR lpName,
>>                           IN LPWSTR lpBuffer,
>>                           IN DWORD nSize)
>> @@ -212,6 +214,7 @@
>>    */
>>   BOOL
>>   WINAPI
>> +DECLSPEC_HOTPATCH
>>   SetEnvironmentVariableA(IN LPCSTR lpName,
>>                           IN LPCSTR lpValue)
>>   {
>> @@ -252,6 +255,7 @@
>>    */
>>   BOOL
>>   WINAPI
>> +DECLSPEC_HOTPATCH
>>   SetEnvironmentVariableW(IN LPCWSTR lpName,
>>                           IN LPCWSTR lpValue)
>>   {
>>
>>
>>
>
>
>
> _______________________________________________
> Ros-dev mailing list
> Ros-dev@reactos.org
> http://www.reactos.org/mailman/listinfo/ros-dev

_______________________________________________
Ros-dev mailing list
Ros-dev@reactos.org
http://www.reactos.org/mailman/listinfo/ros-dev

Reply via email to