summaryrefslogtreecommitdiff
path: root/src/win32-mailslot.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-21 17:06:35 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-21 17:06:35 +0000
commit6b74b53f591e1c34b12e3c5abdc75b8f627f7b9b (patch)
tree990e854f6308a3035f0b802bc94c7a45295460f1 /src/win32-mailslot.c
parent662425f087cbc75625f89c15224a485b4b992074 (diff)
fix that min/max problem reported by reardonia
Diffstat (limited to 'src/win32-mailslot.c')
-rw-r--r--src/win32-mailslot.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/win32-mailslot.c b/src/win32-mailslot.c
index 274aa6f..d000281 100644
--- a/src/win32-mailslot.c
+++ b/src/win32-mailslot.c
@@ -141,13 +141,13 @@ void mailslot_start_background_listener(TrgMainWindow * win)
gboolean mailslot_send_message(gchar ** args)
{
- HANDLE hMailSlot = CreateFile(TRG_MAILSLOT_NAME, // mailslot name
- GENERIC_WRITE, // mailslot write only
- FILE_SHARE_READ, // required for mailslots
- NULL, // default security attributes
- OPEN_EXISTING, // opens existing mailslot
- FILE_ATTRIBUTE_NORMAL, // normal attributes
- NULL); // no template file
+ HANDLE hMailSlot = CreateFile(TRG_MAILSLOT_NAME, // mailslot name
+ GENERIC_WRITE, // mailslot write only
+ FILE_SHARE_READ, // required for mailslots
+ NULL, // default security attributes
+ OPEN_EXISTING, // opens existing mailslot
+ FILE_ATTRIBUTE_NORMAL, // normal attributes
+ NULL); // no template file
if (hMailSlot != INVALID_HANDLE_VALUE) {
DWORD cbBytes;
@@ -178,7 +178,7 @@ gboolean mailslot_send_message(gchar ** args)
json_node_free(node);
g_object_unref(generator);
- WriteFile(hMailSlot, // handle to mailslot
+ WriteFile(hMailSlot, // handle to mailslot
msg, // buffer to write from
strlen(msg) + 1, // number of bytes to write, include the NULL
&cbBytes, // number of bytes written