You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2017/11/03 14:23:17 UTC

svn commit: r1814190 - in /commons/proper/daemon/trunk/src/native/windows: include/gui.h src/gui.c

Author: markt
Date: Fri Nov  3 14:23:17 2017
New Revision: 1814190

URL: http://svn.apache.org/viewvc?rev=1814190&view=rev
Log:
Partial revert of r1814157
This ANSI method is still useful

Modified:
    commons/proper/daemon/trunk/src/native/windows/include/gui.h
    commons/proper/daemon/trunk/src/native/windows/src/gui.c

Modified: commons/proper/daemon/trunk/src/native/windows/include/gui.h
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/include/gui.h?rev=1814190&r1=1814189&r2=1814190&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/include/gui.h (original)
+++ commons/proper/daemon/trunk/src/native/windows/include/gui.h Fri Nov  3 14:23:17 2017
@@ -120,6 +120,7 @@ LPAPXGUISTORE apxGuiInitialize(WNDPROC l
 
 BOOL        apxCenterWindow(HWND hwndChild, HWND hwndParent);
 
+LPSTR       apxLoadResourceA(UINT wID, UINT nBuf);
 LPWSTR      apxLoadResourceW(UINT wID, UINT nBuf);
 
 

Modified: commons/proper/daemon/trunk/src/native/windows/src/gui.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/src/gui.c?rev=1814190&r1=1814189&r2=1814190&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/src/gui.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/src/gui.c Fri Nov  3 14:23:17 2017
@@ -171,6 +171,18 @@ BOOL apxCenterWindow(HWND hwndChild, HWN
  * the string must be used before this call is made a second time.
  */
 
+LPSTR apxLoadResourceA(UINT wID, UINT nBuf)
+
+{
+    static CHAR szBuf[4][SIZ_BUFLEN];
+    if (nBuf > 4)
+        return "";
+    if (LoadStringA(_st_sys_gui.hInstance,wID ,szBuf[nBuf], SIZ_BUFMAX) > 0)
+        return szBuf[nBuf];
+    else
+        return "";
+}
+
 LPWSTR apxLoadResourceW(UINT wID, UINT nBuf)
 
 {