Vlad Bespalov : user32: Make LoadString[AW] patchable.
Alexandre Julliard
julliard at winehq.org
Fri Aug 23 09:31:26 CDT 2019
Module: wine
Branch: stable
Commit: 788ef367cc04a33406792ebd7072fb99559ae0c0
URL: https://source.winehq.org/git/wine.git/?a=commit;h=788ef367cc04a33406792ebd7072fb99559ae0c0
Author: Vlad Bespalov <vlad.botanic at gmail.com>
Date: Tue Feb 12 04:25:09 2019 -0500
user32: Make LoadString[AW] patchable.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46626
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45199
Signed-off-by: Vlad Bespalov <vlad.botanic at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit fd5f03035c2e5c60178d4f74ec1d8a4a376f3c6e)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/user32/resource.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/resource.c b/dlls/user32/resource.c
index 83442d8..8dad3d5 100644
--- a/dlls/user32/resource.c
+++ b/dlls/user32/resource.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#include "config.h"
+
#include <stdarg.h>
#include "windef.h"
@@ -234,7 +236,7 @@ BOOL WINAPI DestroyAcceleratorTable( HACCEL handle )
/**********************************************************************
* LoadStringW (USER32.@)
*/
-INT WINAPI LoadStringW( HINSTANCE instance, UINT resource_id,
+INT WINAPI DECLSPEC_HOTPATCH LoadStringW( HINSTANCE instance, UINT resource_id,
LPWSTR buffer, INT buflen )
{
HGLOBAL hmem;
@@ -289,7 +291,7 @@ INT WINAPI LoadStringW( HINSTANCE instance, UINT resource_id,
/**********************************************************************
* LoadStringA (USER32.@)
*/
-INT WINAPI LoadStringA( HINSTANCE instance, UINT resource_id, LPSTR buffer, INT buflen )
+INT WINAPI DECLSPEC_HOTPATCH LoadStringA( HINSTANCE instance, UINT resource_id, LPSTR buffer, INT buflen )
{
HGLOBAL hmem;
HRSRC hrsrc;
More information about the wine-cvs
mailing list